merge
This commit is contained in:
@@ -41,7 +41,13 @@ public ServerCardVisitor(ServerGameLogic logic) {
|
||||
*/
|
||||
@Override
|
||||
public void visit(TurboCard card) {
|
||||
this.cards.add(card);
|
||||
for (Piece piece : this.logic.getGame().getPlayerByColor(this.logic.getGame().getActiveColor()).getPieces()) {
|
||||
if (piece.getState() == PieceState.ACTIVE) {
|
||||
if (!this.cards.contains(card)) {
|
||||
this.cards.add(card);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user