- Update scripts

This commit is contained in:
swordshine
2014-04-21 00:30:36 +00:00
parent 7fddd89ca5
commit 9f6e258acb
10 changed files with 10 additions and 10 deletions

View File

@@ -78,7 +78,7 @@ public class AnimateAi extends SpellAbilityAi {
// don't use instant speed animate abilities outside humans
// Combat_Declare_Attackers_InstantAbility step
if (ph.getPlayerTurn().isOpponentOf(aiPlayer) &&
(!ph.is(PhaseType.COMBAT_DECLARE_ATTACKERS, opponent) || game.getCombat().getAttackersOf(aiPlayer).isEmpty())) {
(!ph.is(PhaseType.COMBAT_DECLARE_ATTACKERS, opponent) || (game.getCombat() != null && game.getCombat().getAttackersOf(aiPlayer).isEmpty()))) {
return false;
}

View File

@@ -3,7 +3,7 @@ ManaCost:7
Types:Artifact Creature Golem
PT:7/7
K:Defender
T:Mode$ Attacks | ValidCard$ Creature.YouDontCtrl | Attacked$ You,Planeswalker.YouCtrl | IsPresent$ Card.Self+withDefender | TriggerZones$ Battlefield | Execute$ DBAnimate | TriggerDescription$ Whenever a creature attacks you or a planeswalker you control, if CARDNAME has defender, it loses defender and gains trample.
T:Mode$ Attacks | ValidCard$ Creature | Attacked$ You,Planeswalker.YouCtrl | IsPresent$ Card.Self+withDefender | TriggerZones$ Battlefield | Execute$ DBAnimate | TriggerDescription$ Whenever a creature attacks you or a planeswalker you control, if CARDNAME has defender, it loses defender and gains trample.
SVar:DBAnimate:DB$ Animate | Keywords$ Trample | RemoveKeywords$ Defender | Permanent$ True
SVar:Picture:http://www.wizards.com/global/images/magic/general/guardian_of_the_ages.jpg
Oracle:Defender (This creature can't attack.)\nWhen a creature attacks you or a planeswalker you control, if Guardian of the Ages has defender, it loses defender and gains trample.

View File

@@ -4,7 +4,7 @@ Types:Creature Insect
PT:3/2
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ TrigExile | TriggerDescription$ Imprint - When CARDNAME enters the battlefield, exile target land.
SVar:TrigExile:AB$ChangeZone | Cost$ 0 | Imprint$ True | ValidTgts$ Land | TgtPrompt$ Select target land | Origin$ Battlefield | Destination$ Exile
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Land.sharesNameWith Imprinted+YouDontCtrl | TriggerZones$ Battlefield | Execute$ TrigDamage | TriggerDescription$ Whenever a land with the same name as the exiled card enters the battlefield under an opponent's control, CARDNAME deals 2 damage to that player.
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Land.sharesNameWith Imprinted+OppCtrl | TriggerZones$ Battlefield | Execute$ TrigDamage | TriggerDescription$ Whenever a land with the same name as the exiled card enters the battlefield under an opponent's control, CARDNAME deals 2 damage to that player.
SVar:TrigDamage:AB$DealDamage | Cost$ 0 | Defined$ TriggeredCardController | NumDmg$ 2
SVar:Picture:http://www.wizards.com/global/images/magic/general/invader_parasite.jpg
Oracle:Imprint - When Invader Parasite enters the battlefield, exile target land.\nWhenever a land with the same name as the exiled card enters the battlefield under an opponent's control, Invader Parasite deals 2 damage to that player.

View File

@@ -1,7 +1,7 @@
Name:Iron Maiden
ManaCost:3
Types:Artifact
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ Opponent | IsPresent$ Card.YouDontCtrl | PresentZone$ Hand | PresentCompare$ GT4 | TriggerZones$ Battlefield | Execute$ TrigDamage | TriggerDescription$ At the beginning of each opponent's upkeep, CARDNAME deals X damage to that player, where X is the number of cards in his or her hand minus 4.
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ Opponent | TriggerZones$ Battlefield | Execute$ TrigDamage | TriggerDescription$ At the beginning of each opponent's upkeep, CARDNAME deals X damage to that player, where X is the number of cards in his or her hand minus 4.
SVar:TrigDamage:AB$ DealDamage | Cost$ 0 | Defined$ TriggeredPlayer | NumDmg$ X | References$ X
SVar:X:TriggeredPlayer$CardsInHand/Minus.4
SVar:Picture:http://www.wizards.com/global/images/magic/general/iron_maiden.jpg

View File

@@ -2,7 +2,7 @@ Name:Lure of Prey
ManaCost:2 G G
Types:Instant
S:Mode$ CantBeCast | ValidCard$ Card.Self | EffectZone$ All | CheckSVar$ X | SVarCompare$ LE0 | Description$ Cast CARDNAME only if an opponent cast a creature spell this turn.
SVar:X:Count$ThisTurnCast_Creature.YouDontCtrl
SVar:X:Count$ThisTurnCast_Creature.OppCtrl
A:SP$ ChangeZone | Cost$ 2 G G | Origin$ Hand | Destination$ Battlefield | ChangeType$ Creature.Green | ChangeNum$ 1 | SpellDescription$ You may put a green creature card from your hand onto the battlefield.
SVar:Picture:http://www.wizards.com/global/images/magic/general/lure_of_prey.jpg
Oracle:Cast Lure of Prey only if an opponent cast a creature spell this turn.\nYou may put a green creature card from your hand onto the battlefield.

View File

@@ -4,6 +4,6 @@ Types:Instant Trap
A:SP$Tap | Cost$ 2 U U | TargetMin$ 0 | TargetMax$ 2 | ValidTgts$ Creature | TgtPrompt$ Select target creature | SubAbility$ DBPump | SpellDescription$ Tap up to two target creatures. Those creatures don't untap during their controller's next untap step.
A:SP$Tap | Cost$ U | CheckSVar$ GreenCreats | References$ GreenCreats | TargetMin$ 0 | TargetMax$ 2 | ValidTgts$ Creature | TgtPrompt$ Select target creature | SubAbility$ DBPump | SpellDescription$ If an opponent had a green creature enter the battlefield under his or her control this turn, you may pay {U} rather than pay CARDNAME's mana cost.
SVar:DBPump:DB$Pump | Defined$ Targeted | KW$ HIDDEN This card doesn't untap during your next untap step. | Permanent$ True
SVar:GreenCreats:Count$ThisTurnEntered_Battlefield_Creature.Green+YouDontCtrl
SVar:GreenCreats:Count$ThisTurnEntered_Battlefield_Creature.Green+OppCtrl
SVar:Picture:http://www.wizards.com/global/images/magic/general/permafrost_trap.jpg
Oracle:If an opponent had a green creature enter the battlefield under his or her control this turn, you may pay {U} rather than pay Permafrost Trap's mana cost.\nTap up to two target creatures. Those creatures don't untap during their controller's next untap step.

View File

@@ -3,6 +3,6 @@ ManaCost:3 R G
Types:Enchantment
T:Mode$ Phase | Phase$ End of Turn | ValidPlayer$ Opponent | CheckSVar$ X | SVarCompare$ EQ0 | References$ X | TriggerZones$ Battlefield | Execute$ TrigToken | TriggerDescription$ At the beginning of each opponent's end step, if that player didn't cast a creature spell this turn, put a 2/2 green Lizard creature token onto the battlefield.
SVar:TrigToken:AB$Token | Cost$ 0 | TokenName$ Lizard | TokenTypes$ Creature,Lizard | TokenColors$ Green | TokenPower$ 2 | TokenToughness$ 2 | TokenAmount$ 1 | TokenOwner$ You
SVar:X:Count$ThisTurnCast_Creature.YouDontCtrl
SVar:X:Count$ThisTurnCast_Creature.ActivePlayerCtrl
SVar:Picture:http://www.wizards.com/global/images/magic/general/predatory_advantage.jpg
Oracle:At the beginning of each opponent's end step, if that player didn't cast a creature spell this turn, put a 2/2 green Lizard creature token onto the battlefield.

View File

@@ -4,7 +4,7 @@ Types:Enchantment Aura
K:Enchant creature
A:SP$ Attach | Cost$ 1 W W | ValidTgts$ Creature | AILogic$ Curse
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddHiddenKeyword$ CARDNAME can't attack or block. & CARDNAME's activated abilities can't be activated. | Description$ Enchanted creature can't attack or block and its activated abilities can't be activated.
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.YouDontCtrl | TriggerZones$ Battlefield | Execute$ TrigAttach | OptionalDecider$ You | TriggerDescription$ Whenever a creature enters the battlefield under an opponent's control, you may attach CARDNAME to that creature.
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Creature.OppCtrl | TriggerZones$ Battlefield | Execute$ TrigAttach | OptionalDecider$ You | TriggerDescription$ Whenever a creature enters the battlefield under an opponent's control, you may attach CARDNAME to that creature.
SVar:TrigAttach:DB$ Attach | Cost$ 0 | Defined$ TriggeredCard
SVar:Picture:http://www.wizards.com/global/images/magic/general/prison_term.jpg
Oracle:Enchant creature\nEnchanted creature can't attack or block, and its activated abilities can't be activated.\nWhenever a creature enters the battlefield under an opponent's control, you may attach Prison Term to that creature.

View File

@@ -2,7 +2,7 @@ Name:Rackling
ManaCost:4
Types:Artifact Creature Construct
PT:2/2
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ Player.Opponent | IsPresent$ Card.YouDontCtrl | PresentZone$ Hand | PresentCompare$ LT3 | TriggerZones$ Battlefield | Execute$ TrigDamage | TriggerDescription$ At the beginning of each opponent's upkeep, CARDNAME deals X damage to that player, where X is 3 minus the number of cards in his or her hand.
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ Player.Opponent | TriggerZones$ Battlefield | Execute$ TrigDamage | TriggerDescription$ At the beginning of each opponent's upkeep, CARDNAME deals X damage to that player, where X is 3 minus the number of cards in his or her hand.
SVar:TrigDamage:AB$ DealDamage | Cost$ 0 | Defined$ TriggeredPlayer | NumDmg$ X | References$ X
SVar:X:TriggeredPlayer$CardsInHand/NMinus.3
SVar:Picture:http://www.wizards.com/global/images/magic/general/rackling.jpg

View File

@@ -1,7 +1,7 @@
Name:Thunderstaff
ManaCost:3
Types:Artifact
S:Mode$ PreventDamage | Target$ You | Source$ Creature.YouDontCtrl | CombatDamage$ True | Amount$ 1 | CheckSVar$ X | SVarCompare$ EQ1 | Description$ As long as CARDNAME is untapped, if a creature would deal combat damage to you, prevent 1 of that damage.
S:Mode$ PreventDamage | Target$ You | Source$ Creature | CombatDamage$ True | Amount$ 1 | CheckSVar$ X | SVarCompare$ EQ1 | Description$ As long as CARDNAME is untapped, if a creature would deal combat damage to you, prevent 1 of that damage.
A:AB$ PumpAll | Cost$ 2 T | ValidCards$ Creature.attacking | NumAtt$ +1 | SpellDescription$ Attacking creatures get +1/+0 until end of turn.
SVar:X:Count$Valid Card.Self+untapped
SVar:Picture:http://www.wizards.com/global/images/magic/general/thunderstaff.jpg