mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Added AI logic to the "Tap to get {E}" ability of Consulate Turret.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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.
|
||||
Reference in New Issue
Block a user