- 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();

View File

@@ -1,7 +1,7 @@
Name:Consulate Turret
ManaCost:3
Types:Artifact
A:AB$ PutCounter | Cost$ T | Defined$ You | CounterType$ ENERGY | CounterNum$ 1 | SpellDescription$ You get {E} (an energy counter).
A:AB$ PutCounter | Cost$ T | Defined$ You | CounterType$ ENERGY | CounterNum$ 1 | AILogic$ AlwaysAtOppEOT | SpellDescription$ You get {E} (an energy counter).
A:AB$ DealDamage | Cost$ T PayEnergy<3> | ValidTgts$ Player | TgtPrompt$ Select target player | NumDmg$ 2 | SpellDescription$ CARDNAME deals 2 damage to target player.
SVar:Picture:http://www.wizards.com/global/images/magic/general/consulate_turret.jpg
Oracle:{T}: You get {E} (an energy counter).\n{T}, Pay {E}{E}{E}: Consulate Turret deals 2 damage to target player.