- RemAIDeck update: next iteration.

This commit is contained in:
Agetian
2017-10-03 16:12:47 +00:00
parent 2c7d75996e
commit c1674b568a
18 changed files with 22 additions and 28 deletions

View File

@@ -50,6 +50,13 @@ public class DestroyAi extends SpellAbilityAi {
hasXCost = abCost.getCostMana() != null ? abCost.getCostMana().getAmountOfX() > 0 : false;
}
if ("AtOpponentsCombatOrAfter".equals(sa.getParam("AILogic"))) {
PhaseHandler ph = ai.getGame().getPhaseHandler();
if (ph.getPlayerTurn() == ai || ph.getPhase().isBefore(PhaseType.COMBAT_DECLARE_ATTACKERS)) {
return false;
}
}
if (ComputerUtil.preventRunAwayActivations(sa)) {
return false;
}