- Added a new AI SVar: MustAttack.

- Added it to Mad Dog.
This commit is contained in:
Sloth
2012-01-26 15:38:41 +00:00
parent 37580a2c11
commit 68e5691586
3 changed files with 28 additions and 25 deletions

View File

@@ -1,15 +1,16 @@
Name:Mad Dog
ManaCost:1 R
Types:Creature Hound
Text:no text
PT:2/2
T:Mode$ Phase | Phase$ End of Turn | ValidPlayer$ You | Execute$ TrigSacrifice | TriggerZones$ Battlefield | TriggerDescription$ At the beginning of your end step, if CARDNAME didn't attack or come under your control this turn, sacrifice it.
SVar:TrigSacrifice:AB$ Sacrifice | Cost$ 0 | ConditionCheckSVar$ X | ConditionSVarCompare$ EQ0
SVar:Y:Count$ThisTurnEntered_Battlefield_Card.Self
SVar:Z:Count$Valid Card.Self+attackedThisTurn
SVar:X:SVar$Y/Plus.Z
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/mad_dog.jpg
SetInfo:ODY|Common|http://magiccards.info/scans/en/od/202.jpg
Oracle:At the beginning of your end step, if Mad Dog didn't attack or come under your control this turn, sacrifice it.
Name:Mad Dog
ManaCost:1 R
Types:Creature Hound
Text:no text
PT:2/2
T:Mode$ Phase | Phase$ End of Turn | ValidPlayer$ You | Execute$ TrigSacrifice | TriggerZones$ Battlefield | TriggerDescription$ At the beginning of your end step, if CARDNAME didn't attack or come under your control this turn, sacrifice it.
SVar:TrigSacrifice:AB$ Sacrifice | Cost$ 0 | ConditionCheckSVar$ X | ConditionSVarCompare$ EQ0
SVar:Y:Count$ThisTurnEntered_Battlefield_Card.Self
SVar:Z:Count$Valid Card.Self+attackedThisTurn
SVar:X:SVar$Y/Plus.Z
SVar:MustAttack:True
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/mad_dog.jpg
SetInfo:ODY|Common|http://magiccards.info/scans/en/od/202.jpg
Oracle:At the beginning of your end step, if Mad Dog didn't attack or come under your control this turn, sacrifice it.
End

View File

@@ -1,12 +1,13 @@
Name:Nantuko Mentor
ManaCost:2 G
Types:Creature Insect Druid
Text:no text
PT:1/1
A:AB$ Pump | Cost$ 2 G T | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumAtt$ X | NumDef$ X | SpellDescription$ Target creature gets +X/+X until end of turn, where X is that creature's power.
SVar:X:Targeted$CardPower
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/nantuko_mentor.jpg
SetInfo:ODY|Rare|http://magiccards.info/scans/en/od/255.jpg
Oracle:{2}{G}, {T}: Target creature gets +X/+X until end of turn, where X is that creature's power.
Name:Nantuko Mentor
ManaCost:2 G
Types:Creature Insect Druid
Text:no text
PT:1/1
A:AB$ Pump | Cost$ 2 G T | ValidTgts$ Creature | TgtPrompt$ Select target creature | NumAtt$ X | NumDef$ X | SpellDescription$ Target creature gets +X/+X until end of turn, where X is that creature's power.
SVar:X:Targeted$CardPower
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/nantuko_mentor.jpg
SetInfo:ODY|Rare|http://magiccards.info/scans/en/od/255.jpg
Oracle:{2}{G}, {T}: Target creature gets +X/+X until end of turn, where X is that creature's power.
End

View File

@@ -443,6 +443,7 @@ public class ComputerUtilAttack {
// Attackers that don't really have a choice
for (final Card attacker : this.attackers) {
if ((attacker.hasKeyword("CARDNAME attacks each turn if able.")
|| !attacker.getSVar("MustAttack").equals("")
|| attacker.hasKeyword("At the beginning of the end step, destroy CARDNAME.")
|| attacker.hasKeyword("At the beginning of the end step, exile CARDNAME.")
|| attacker.hasKeyword("At the beginning of the end step, sacrifice CARDNAME.")