- Added AI logic to the "Tap to get {E}" ability of Consulate Turret.

This commit is contained in:
Agetian
2017-07-11 10:07:12 +00:00
parent 89cfd0bbb0
commit 546fc33ba6
2 changed files with 7 additions and 1 deletions

View File

@@ -324,6 +324,12 @@ public class CountersPutAi extends SpellAbilityAi {
}
PhaseHandler ph = ai.getGame().getPhaseHandler();
if ("AlwaysAtOppEOT".equals(sa.getParam("AILogic"))) {
if (ph.is(PhaseType.END_OF_TURN) && !ph.isPlayerTurn(ai)) {
return true;
}
}
if (!ai.getGame().getStack().isEmpty() && !SpellAbilityAi.isSorcerySpeed(sa)) {
final TargetRestrictions abTgt = sa.getTargetRestrictions();