- Added AI Logic to CounterMagic, so AI can at least use Kozilek as a 12/12 body with a strong ETB ability, even though the AI doesn't know how to use it's activated ability

This commit is contained in:
Sol
2016-01-27 23:09:11 +00:00
parent c44901fca5
commit d4e5f5e7d1
2 changed files with 9 additions and 2 deletions

View File

@@ -104,6 +104,14 @@ public class CounterAi extends SpellAbilityAi {
// But really it should be more picky about how it counters things
if (sa.hasParam("AILogic")) {
String logic = sa.getParam("AILogic");
if ("Never".equals(logic)) {
return false;
}
}
return toReturn;
}

View File

@@ -7,8 +7,7 @@ SVar:TrigDraw:AB$Draw | Cost$ 0 | Defined$ You | NumCards$ Difference | Referenc
SVar:Y:Count$InYourHand
SVar:Difference:Number$7/Minus.Y
K:Menace
A:AB$ Counter | Announce$ X | Cost$ Discard<1/Card.cmcEQX/card with converted mana cost X> | TargetType$ Spell | TgtPrompt$ Select target spell | ValidTgts$ Card | SpellDescription$ Counter target spell with converted mana cost X.
A:AB$ Counter | Announce$ X | Cost$ Discard<1/Card.cmcEQX/card with converted mana cost X> | TargetType$ Spell | TgtPrompt$ Select target spell | ValidTgts$ Card | AILogic$ Never | SpellDescription$ Counter target spell with converted mana cost X.
SVar:X:Targeted$CardManaCost
SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/kozilek_the_great_distortion.jpg
Oracle:When you cast Kozilek, the Great Distortion, if you have fewer than seven cards in hand, draw cards equal to the difference.\nMenace\nDiscard a card with converted mana cost X: Counter target spell with converted mana cost X.