mtg-forge-ios/forge-gui/res/cardsfolder/c/custody_battle.txt

15 lines
1.5 KiB
Plaintext

Name:Custody Battle
ManaCost:1 R
Types:Enchantment Aura
K:Enchant creature
A:SP$ Attach | Cost$ 1 R | ValidTgts$ Creature | AILogic$ Curse
S:Mode$ Continuous | Affected$ Creature.AttachedBy | AddTrigger$ TrigCustodyBattlePhase | AddSVar$ TrigCustodyBattleSacrifice & DBCustodyBattleGainControl & DBCustodyBattleCleanup | Description$ Enchanted creature has "At the beginning of your upkeep, target opponent gains control of this creature unless you sacrifice a land."
SVar:TrigCustodyBattlePhase:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | Execute$ TrigCustodyBattleSacrifice | TriggerZones$ Battlefield | TriggerDescription$ Enchanted creature has "At the beginning of your upkeep, target opponent gains control of this creature unless you sacrifice a land."
SVar:TrigCustodyBattleSacrifice:AB$ Sacrifice | Cost$ 0 | SacValid$ Land | RememberSacrificed$ True | Optional$ True | SubAbility$ DBCustodyBattleGainControl
SVar:DBCustodyBattleGainControl:DB$ GainControl | Defined$ Self | ValidTgts$ Opponent | TgtPrompt$ Select target opponent | ConditionDefined$ Remembered | ConditionPresent$ Land | ConditionCompare$ EQ0 | SubAbility$ DBCustodyBattleCleanup
SVar:DBCustodyBattleCleanup:DB$ Cleanup | ClearRemembered$ True
SVar:RemAIDeck:True
SVar:RemRandomDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/custody_battle.jpg
Oracle:Enchant creature\nEnchanted creature has "At the beginning of your upkeep, target opponent gains control of this creature unless you sacrifice a land."