forked from External/mage
[CMR] updated implementation of War Room
This commit is contained in:
parent
8617bc128e
commit
b8106cd554
1 changed files with 4 additions and 1 deletions
|
|
@ -62,6 +62,8 @@ enum WarRoomValue implements DynamicValue {
|
|||
return 0;
|
||||
}
|
||||
ObjectColor color = new ObjectColor();
|
||||
// if no commander then cost can't be paid
|
||||
boolean hasCommander = false;
|
||||
for (UUID commanderId : game.getCommandersIds(controller)) {
|
||||
Card commander = game.getCard(commanderId);
|
||||
if (commander == null) {
|
||||
|
|
@ -83,8 +85,9 @@ enum WarRoomValue implements DynamicValue {
|
|||
if (commanderMana.isGreen()) {
|
||||
color.setGreen(true);
|
||||
}
|
||||
hasCommander = true;
|
||||
}
|
||||
return color.getColorCount();
|
||||
return hasCommander ? color.getColorCount() : Integer.MAX_VALUE;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue