Fix broken condition for freeform commander (can be any creature or any Legendary card)

This commit is contained in:
spjspj 2021-06-22 00:00:38 +10:00
parent ae2787f119
commit fe96a2de12

View file

@ -119,7 +119,7 @@ public class FreeformCommander extends Constructed {
commanderNames.add(commander.getName()); commanderNames.add(commander.getName());
} }
for (Card commander : commanders) { for (Card commander : commanders) {
if (!commander.isCreature() || !commander.isLegendary()) { if (!(commander.isCreature() || commander.isLegendary())) {
addError(DeckValidatorErrorType.PRIMARY, commander.getName(), "For Freeform Commander, the commander must be a creature or be legendary. Yours was: " + commander.getName(), true); addError(DeckValidatorErrorType.PRIMARY, commander.getName(), "For Freeform Commander, the commander must be a creature or be legendary. Yours was: " + commander.getName(), true);
valid = false; valid = false;
} }