Code cleanup

This commit is contained in:
austinio7116
2018-03-27 06:50:39 +01:00
committed by maustin
parent 5b8342188c
commit e2ee43fb2d
4 changed files with 7 additions and 26 deletions

View File

@@ -1036,8 +1036,7 @@ public class FDeckEditor extends TabPageScreen<FDeckEditor> {
if (parentScreen.getCommanderPage() != null) {
boolean isLegalCommander;
if(parentScreen.editorType.equals(EditorType.Brawl)){
CardType cardType = card.getRules().getType();
isLegalCommander = cardType.isPlaneswalker() || (cardType.isCreature() && cardType.isLegendary());
isLegalCommander = card.getRules().canBeBrawlCommander();
}else{
isLegalCommander = DeckFormat.Commander.isLegalCommander(card.getRules());
}