Merge branch 'master' into 'master'

Leonin Vanguard fix + Medomai

See merge request core-developers/forge!4372
This commit is contained in:
swordshine
2021-04-04 15:33:30 +00:00
4 changed files with 9 additions and 11 deletions

View File

@@ -257,11 +257,6 @@ public class CombatUtil {
return false;
}
break;
case "CARDNAME can't attack during extra turns.":
if (game.getPhaseHandler().getPlayerTurn().isExtraTurn()) {
return false;
}
break;
}
}

View File

@@ -539,6 +539,10 @@ public class StaticAbility extends CardTraitBase implements IIdentifiable, Clone
if (ph.isPlayerTurn(controller)) {
return false;
}
} else if (condition.equals("ExtraTurn")) {
if (!game.getPhaseHandler().getPlayerTurn().isExtraTurn()) {
return false;
}
} else if (condition.equals("PermanentOfEachColor")) {
if ((controller.getColoredCardsInPlay(MagicColor.Constant.BLACK).isEmpty()
|| controller.getColoredCardsInPlay(MagicColor.Constant.BLUE).isEmpty()