diff --git a/res/cardsfolder/a/academy_at_tolaria_west.txt b/res/cardsfolder/a/academy_at_tolaria_west.txt index 177ab7861dd..7af66086eef 100644 --- a/res/cardsfolder/a/academy_at_tolaria_west.txt +++ b/res/cardsfolder/a/academy_at_tolaria_west.txt @@ -5,10 +5,6 @@ T:Mode$ Phase | Phase$ End of Turn | ValidPlayer$ You | TriggerZones$ Command | SVar:AcademicDraw:AB$ Draw | Cost$ 0 | Defined$ You | NumCards$ 7 T:Mode$ PlanarDice | Result$ Chaos | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever you roll Chaos, discard your hand. SVar:RolledChaos:AB$ Discard | Cost$ 0 | Mode$ Hand | Defined$ You -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.wizards.com/global/images/magic/general/academy_at_tolaria_west.jpg Oracle:At the beginning of your end step, if you have no cards in hand, draw seven cards.\nWhenever you roll {C}, discard your hand. SetInfo:HOP Common \ No newline at end of file diff --git a/res/cardsfolder/a/aretopolis.txt b/res/cardsfolder/a/aretopolis.txt index 41e42a54bb6..22abe9b61b6 100644 --- a/res/cardsfolder/a/aretopolis.txt +++ b/res/cardsfolder/a/aretopolis.txt @@ -10,10 +10,6 @@ T:Mode$ Always | TriggerZones$ Command | CheckSVar$ NumScrolls | SVarCompare$ GE T:Mode$ PlanarDice | Result$ Chaos | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever you roll Chaos, put a scroll counter on CARDNAME, then draw cards equal to the number of scroll counters on it. SVar:RolledChaos:AB$ PutCounter | Cost$ 0 | Defined$ Self | CounterType$ SCROLL | CounterNum$ 1 | SubAbility$ ScrollsOfKnowledge SVar:ScrollsOfKnowledge:DB$ Draw | Defined$ You | NumCards$ NumScrolls | References$ NumScrolls -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.wizards.com/global/images/magic/general/aretopolis.jpg Oracle:When you planeswalk to Aretopolis or at the beginning of your upkeep, put a scroll counter on Aretopolis, then you gain life equal to the number of scroll counters on it.\nWhen Aretopolis has ten or more scroll counters on it, planeswalk.\nWhenever you roll {C}, put a scroll counter on Aretopolis, then draw cards equal to the number of scroll counters on it. SetInfo:PC2 Common \ No newline at end of file diff --git a/res/cardsfolder/b/bant.txt b/res/cardsfolder/b/bant.txt index cf61fd6396c..00e4e52f046 100644 --- a/res/cardsfolder/b/bant.txt +++ b/res/cardsfolder/b/bant.txt @@ -6,10 +6,6 @@ T:Mode$ PlanarDice | Result$ Chaos | TriggerZones$ Command | Execute$ RolledChao SVar:RolledChaos:AB$ PutCounter | Cost$ 0 | ValidTgts$ Creature.Green,Creature.White,Creature.Blue | CounterType$ DIVINITY | CounterNum$ 1 | SubAbility$ DivineCharacter SVar:DivineCharacter:DB$ Animate | Defined$ Targeted | staticAbilities$ IndestructibleAspect | Permanent$ True SVar:IndestructibleAspect:Mode$ Continuous | EffectZone$ Battlefield | Affected$ Card.Self+counters_GE1_DIVINITY | AddHiddenKeyword$ Indestructible -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.wizards.com/global/images/magic/general/bant.jpg Oracle:All creatures have exalted. (Whenever a creature attacks alone, it gets +1/+1 until end of turn for each instance of exalted among permanents its controller controls.)\nWhenever you roll {C}, put a divinity counter on target green, white, or blue creature. That creature is indestructible as long as it has a divinity counter on it. SetInfo:HOP Common \ No newline at end of file diff --git a/res/cardsfolder/f/feeding_grounds.txt b/res/cardsfolder/f/feeding_grounds.txt index ec93f1e7a57..014085a6a67 100644 --- a/res/cardsfolder/f/feeding_grounds.txt +++ b/res/cardsfolder/f/feeding_grounds.txt @@ -4,12 +4,8 @@ Types:Plane Muraganda S:Mode$ ReduceCost | EffectZone$ Command | ValidCard$ Card.Green | Type$ Spell | Amount$ 1 | Description$ Green spells cost 1 less to cast. S:Mode$ ReduceCost | EffectZone$ Command | ValidCard$ Card.Red | Type$ Spell | Amount$ 1 | Description$ Red spells cost 1 less to cast. T:Mode$ PlanarDice | Result$ Chaos | TriggerZones$ Command | Execute$ DBPutCounter | TriggerDescription$ Whenever you roll Chaos, put X +1/+1 counters on target creature, where X is that creature's converted mana cost. -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. SVar:DBPutCounter:DB$ PutCounter | ValidTgts$ Creature | TgtPrompt$ Select target creature | CounterType$ P1P1 | CounterNum$ Y SVar:Y:Targeted$CardManaCost -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.wizards.com/global/images/magic/general/feeding_grounds.jpg Oracle:Red spells cost {1} less to cast.\nGreen spells cost {1} less to cast.\nWhenever you roll {C}, put X +1/+1 counters on target creature, where X is that creature's converted mana cost. SetInfo:HOP Common \ No newline at end of file diff --git a/res/cardsfolder/f/fields_of_summer.txt b/res/cardsfolder/f/fields_of_summer.txt index 5557e6984ec..7f3f28ea602 100644 --- a/res/cardsfolder/f/fields_of_summer.txt +++ b/res/cardsfolder/f/fields_of_summer.txt @@ -5,10 +5,6 @@ T:Mode$ SpellCast | OptionalDecider$ TriggeredPlayer | TriggerZones$ Command | E SVar:LifeSummer:AB$ GainLife | Cost$ 0 | Defined$ TriggeredPlayer | LifeAmount$ 2 T:Mode$ PlanarDice | Result$ Chaos | OptionalDecider$ You | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever you roll Chaos, you may gain 10 life. SVar:RolledChaos:AB$ GainLife | Cost$ 0 | LifeAmount$ 10 | Defined$ You -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up. -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.wizards.com/global/images/magic/general/fields_of_summer.jpg Oracle:Whenever a player casts a spell, that player may gain 2 life.\nWhenever you roll {C}, you may gain 10 life. SetInfo:HOP Common \ No newline at end of file diff --git a/res/cardsfolder/g/goldmeadow.txt b/res/cardsfolder/g/goldmeadow.txt index ad665016c51..3471216ae4f 100644 --- a/res/cardsfolder/g/goldmeadow.txt +++ b/res/cardsfolder/g/goldmeadow.txt @@ -5,10 +5,6 @@ T:Mode$ ChangesZone | ValidCard$ Land | Destination$ Battlefield | Execute$ Trip SVar:TripleGoat:AB$ Token | Cost$ 0 | TokenName$ Goat | TokenTypes$ Creature,Goat | TokenPower$ 0 | TokenToughness$ 1 | TokenColors$ White | TokenOwner$ TriggeredCardController | TokenImage$ W 0 1 Goat | TokenAmount$ 3 T:Mode$ PlanarDice | Result$ Chaos | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever you roll Chaos, put a 0/1 white Goat creature token onto the battlefield. SVar:RolledChaos:AB$ Token | Cost$ 0 | TokenName$ Goat | TokenTypes$ Creature,Goat | TokenPower$ 0 | TokenToughness$ 1 | TokenColors$ White | TokenOwner$ TriggeredPlayer | TokenImage$ W 0 1 Goat | TokenAmount$ 1 -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.wizards.com/global/images/magic/general/goldmeadow.jpg Oracle:Whenever a land enters the battlefield, that land's controller puts three 0/1 white Goat creature tokens onto the battlefield.\nWhenever you roll {C}, put a 0/1 white Goat creature token onto the battlefield. SetInfo:HOP Common \ No newline at end of file diff --git a/res/cardsfolder/h/horizon_boughs.txt b/res/cardsfolder/h/horizon_boughs.txt index 0d110f7f815..76e37b34e92 100644 --- a/res/cardsfolder/h/horizon_boughs.txt +++ b/res/cardsfolder/h/horizon_boughs.txt @@ -3,11 +3,7 @@ ManaCost:no cost Types:Plane Pyrulea S:Mode$ Continuous | EffectZone$ Command | Affected$ Permanent | AddHiddenKeyword$ CARDNAME untaps during each other player's untap step. | Description$ All permanents untap during each player's untap step. T:Mode$ PlanarDice | Result$ Chaos | TriggerZones$ Command | Execute$ DBFetch | TriggerDescription$ Whenever you roll Chaos, you may search your library for up to three basic land cards, put them onto the battlefield tapped, then shuffle your library. -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. SVar:DBFetch:DB$ChangeZone | Origin$ Library | Destination$ Battlefield | Tapped$ True | ChangeType$ Land.Basic | ChangeNum$ 3 -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.cardforge.org/fpics/lq_planes_promos/horizon_boughs.jpg Oracle:All permanents untap during each player's untap step.\nWhenever you roll {C}, you may search your library for up to three basic land cards, put them onto the battlefield tapped, then shuffle your library. SetInfo:HOP Common \ No newline at end of file diff --git a/res/cardsfolder/k/krosa.txt b/res/cardsfolder/k/krosa.txt index 7aefafd54d4..45923c31d5b 100644 --- a/res/cardsfolder/k/krosa.txt +++ b/res/cardsfolder/k/krosa.txt @@ -4,10 +4,6 @@ Types:Plane Dominaria S:Mode$ Continuous | EffectZone$ Command | Affected$ Creature | AddPower$ 2 | AddPower$ 2 | Description$ All Creatures get +2/+2. T:Mode$ PlanarDice | Result$ Chaos | OptionalDecider$ You | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever you roll Chaos, you may add W U B R G to your mana pool. SVar:RolledChaos:AB$ Mana | Cost$ 0 | Produced$ W U B R G -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up. -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.wizards.com/global/images/magic/general/krosa.jpg Oracle:All creatures get +2/+2.\nWhenever you roll {C}, you may add {W}{U}{B}{R}{G} to your mana pool. SetInfo:HOP Common \ No newline at end of file diff --git a/res/cardsfolder/l/lethe_lake.txt b/res/cardsfolder/l/lethe_lake.txt index 6cd5e9ad6a7..0930eb66c88 100644 --- a/res/cardsfolder/l/lethe_lake.txt +++ b/res/cardsfolder/l/lethe_lake.txt @@ -5,10 +5,6 @@ T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Command | Execu SVar:LetheMill:AB$ Mill | Cost$ 0 | Defined$ You | NumCards$ 10 T:Mode$ PlanarDice | Result$ Chaos | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever you roll Chaos, target player puts the top 10 cards of his or her library into his or her graveyard. SVar:RolledChaos:AB$ Mill | Cost$ 0 | ValidTgts$ Player | TgtPrompt$ Choose target player to mill. | NumCards$ 10 -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.wizards.com/global/images/magic/general/lethe_lake.jpg Oracle:At the beginning of your upkeep, put the top ten cards of your library into your graveyard.\nWhenever you roll {C}, target player puts the top ten cards of his or her library into his or her graveyard. SetInfo:HOP Common \ No newline at end of file diff --git a/res/cardsfolder/l/llanowar.txt b/res/cardsfolder/l/llanowar.txt index c76c391ab26..04b3c29bb97 100644 --- a/res/cardsfolder/l/llanowar.txt +++ b/res/cardsfolder/l/llanowar.txt @@ -5,10 +5,6 @@ S:Mode$ Continuous | Affected$ Creature | EffectZone$ Command | AddAbility$ Llan SVar:LlanowarAb:AB$ Mana | Cost$ T | Amount$ 2 | Produced$ G | SpellDescription$ Add G G to your mana pool. T:Mode$ PlanarDice | Result$ Chaos | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever you roll Chaos, untap all creatures you control. SVar:RolledChaos:AB$ UntapAll | Cost$ 0 | ValidCards$ Creature.YouCtrl -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.wizards.com/global/images/magic/general/llanowar.jpg Oracle:All creatures have "{T}: Add {G}{G} to your mana pool."\nWhenever you roll {C}, untap all creatures you control. SetInfo:HOP Common \ No newline at end of file diff --git a/res/cardsfolder/p/panopticon.txt b/res/cardsfolder/p/panopticon.txt index 9081d0c08c6..d57f16ff28b 100644 --- a/res/cardsfolder/p/panopticon.txt +++ b/res/cardsfolder/p/panopticon.txt @@ -5,10 +5,6 @@ T:Mode$ PlaneswalkedTo | ValidCard$ Card.Self | TriggerZones$ Command | Execute$ T:Mode$ Phase | Phase$ Draw | ValidPlayer$ You | Execute$ PanopticonDraw | TriggerDescription$ At the beginning of your draw step, draw an additional card. T:Mode$ PlanarDice | Result$ Chaos | TriggerZones$ Command | Execute$ PanopticonDraw | TriggerDescription$ Whenever you roll Chaos, draw a card. SVar:PanopticonDraw:AB$ Draw | Cost$ 0 | Defined$ You | NumCards$ 1 -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.wizards.com/global/images/magic/general/panopticon.jpg Oracle:When you planeswalk to Panopticon, draw a card.\nAt the beginning of your draw step, draw an additional card.\nWhenever you roll {C}, draw a card. SetInfo:HOP Common \ No newline at end of file diff --git a/res/cardsfolder/r/ravens_run.txt b/res/cardsfolder/r/ravens_run.txt index 48cbb825067..aeac1bb1ff8 100644 --- a/res/cardsfolder/r/ravens_run.txt +++ b/res/cardsfolder/r/ravens_run.txt @@ -7,10 +7,6 @@ SVar:RolledChaos1:AB$ PutCounter | Cost$ 0 | ValidTgts$ Creature | CounterType$ SVar:RolledChaos2:DB$ PutCounter | ValidTgts$ Creature.IsNotRemembered | CounterType$ M1M1 | CounterNum$ 2 | RememberTargets$ True | SubAbility$ RolledChaos3 SVar:RolledChaos3:DB$ PutCounter | ValidTgts$ Creature.IsNotRemembered | CounterType$ M1M1 | CounterNum$ 3 | SubAbility$ RolledChaosCleanup SVar:RolledChaosCleanup:DB$ Cleanup | ClearRemembered$ True -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up. -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.cardforge.org/fpics/lq_planes_promos/ravens_run.jpg Oracle:All creatures have wither. (They deal damage to creatures in the form of -1/-1 counters.)\nWhenever you roll {C}, put a -1/-1 counter on target creature, two -1/-1 counters on another target creature, and three -1/-1 counters on a third target creature. SetInfo:HOP Common \ No newline at end of file diff --git a/res/cardsfolder/t/takenuma.txt b/res/cardsfolder/t/takenuma.txt index 061444ba34c..c0bac0f0be5 100644 --- a/res/cardsfolder/t/takenuma.txt +++ b/res/cardsfolder/t/takenuma.txt @@ -5,10 +5,6 @@ T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Any | ValidCard$ Creatu SVar:TakenumaDraw:AB$ Draw | Cost$ 0 | Defined$ TriggeredCardController | NumCards$ 1 T:Mode$ PlanarDice | Result$ Chaos | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever you roll Chaos, return target creature you control to its owner's hand. SVar:RolledChaos:AB$ ChangeZone | Cost$ 0 | ValidTgts$ Creature.YouCtrl | TgtPrompt$ Select target creature to return to your hand | Origin$ Battlefield | Destination$ Hand -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.wizards.com/global/images/magic/general/takenuma.jpg Oracle:Whenever a creature leaves the battlefield, its controller draws a card.\nWhenever you roll {C}, return target creature you control to its owner's hand. SetInfo:PC2 Common \ No newline at end of file diff --git a/res/cardsfolder/t/talon_gates.txt b/res/cardsfolder/t/talon_gates.txt index 18e6578015b..bacd6267f0e 100644 --- a/res/cardsfolder/t/talon_gates.txt +++ b/res/cardsfolder/t/talon_gates.txt @@ -9,10 +9,6 @@ SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True SVar:GateX:Remembered$CardManaCost T:Mode$ PlanarDice | Result$ Chaos | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever you roll Chaos, remove two time counters from each suspended card you own. SVar:RolledChaos:AB$ RemoveCounterAll | Cost$ 0 | ValidCards$ Card.suspended+YouOwn | CounterType$ TIME | CounterNum$ 2 | ValidZone$ Exile -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.wizards.com/global/images/magic/general/talon_gates.jpg Oracle:Any time you could cast a sorcery, you may exile a nonland card from your hand with X time counters on it, where X is its converted mana cost. If the exiled card doesn't have suspend, it gains suspend. (At the beginning of its owner's upkeep, he or she removes a time counter. When the last is removed, the player casts it without paying its mana cost. If it's a creature, it has haste.)\nWhenever you roll {C}, remove two time counters from each suspended card you own. SetInfo:PC2 Common \ No newline at end of file diff --git a/res/cardsfolder/t/the_aether_flues.txt b/res/cardsfolder/t/the_aether_flues.txt index 051b1aa9f02..722b76c4577 100644 --- a/res/cardsfolder/t/the_aether_flues.txt +++ b/res/cardsfolder/t/the_aether_flues.txt @@ -8,10 +8,6 @@ SVar:FluesDig:DB$ DigUntil | Valid$ Creature | ValidDescription$ creature | Foun SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True T:Mode$ PlanarDice | Result$ Chaos | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever you roll Chaos, you may put a creature card from your hand onto the battlefield. SVar:RolledChaos:AB$ ChangeZone | Cost$ 0 | ChangeType$ Creature | ChangeNum$ 1 | Origin$ Hand | Destination$ Battlefield -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.wizards.com/global/images/magic/general/the_aether_flues.jpg Oracle:When you planeswalk to The AEther Flues or at the beginning of your upkeep, you may sacrifice a creature. If you do, reveal cards from the top of your library until you reveal a creature card, put that card onto the battlefield, then shuffle all other cards revealed this way into your library.\nWhenever you roll {C}, you may put a creature card from your hand onto the battlefield. SetInfo:HOP Common \ No newline at end of file diff --git a/res/cardsfolder/t/the_fourth_sphere.txt b/res/cardsfolder/t/the_fourth_sphere.txt index 5ff54eec2c7..c8c2e048840 100644 --- a/res/cardsfolder/t/the_fourth_sphere.txt +++ b/res/cardsfolder/t/the_fourth_sphere.txt @@ -5,10 +5,6 @@ T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Command | Execu SVar:FourthSac:AB$ Sacrifice | Cost$ 0 | Defined$ You | SacValid$ Creature.nonBlack T:Mode$ PlanarDice | Result$ Chaos | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever you roll Chaos, put a 2/2 black zombie token onto the battlefield. SVar:RolledChaos:AB$Token | Cost$ 0 | TokenImage$ B 2 2 Zombie | TokenName$ Zombie | TokenColors$ Black | TokenTypes$ Creature,Zombie | TokenPower$ 2 | TokenToughness$ 2 | TokenOwner$ You | TokenAmount$ 2 -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.wizards.com/global/images/magic/general/the_fourth_sphere.jpg Oracle:At the beginning of your upkeep, sacrifice a nonblack creature.\nWhenever you roll {C}, put a 2/2 black Zombie creature token onto the battlefield. SetInfo:HOP Common \ No newline at end of file diff --git a/res/cardsfolder/t/the_great_forest.txt b/res/cardsfolder/t/the_great_forest.txt index 8dd01962cfb..e0b0205a348 100644 --- a/res/cardsfolder/t/the_great_forest.txt +++ b/res/cardsfolder/t/the_great_forest.txt @@ -4,10 +4,6 @@ Types:Plane Lorwyn S:Mode$ Continuous | EffectZone$ Command | GlobalRule$ Each creature assigns combat damage equal to its toughness rather than its power. | Description$ Each creature assigns combat damage equal to its toughness rather than its power. T:Mode$ PlanarDice | Result$ Chaos | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever you roll Chaos,creatures you control get +0/+2 and gain trample until end of turn. SVar:RolledChaos:AB$ PumpAll | Cost$ 0 | ValidCards$ Creature.ActivePlayerCtrl | NumDef$ 2 | KW$ Trample -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.wizards.com/global/images/magic/general/the_great_forest.jpg Oracle:Each creature assigns combat damage equal to its toughness rather than its power.\nWhenever you roll {C}, creatures you control get +0/+2 and gain trample until end of turn. SetInfo:HOP Common \ No newline at end of file diff --git a/res/cardsfolder/t/the_hippodrome.txt b/res/cardsfolder/t/the_hippodrome.txt index 41cc3255ca3..a1d1f67e2bc 100644 --- a/res/cardsfolder/t/the_hippodrome.txt +++ b/res/cardsfolder/t/the_hippodrome.txt @@ -5,10 +5,6 @@ S:Mode$ Continuous | EffectZone$ Command | Affected$ Creature | AddPower$ -5 | D T:Mode$ PlanarDice | Result$ Chaos | OptionalDecider$ You | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever you roll Chaos, you may destroy target creature if it's power is 0 or less. SVar:RolledChaos:AB$ Destroy | Cost$ 0 | ValidTgts$ Creature | ConditionCheckSVar$ TgtPow | ConditionCompareSVar$ EQ1 | AITgts$ Creature.OpponentCtrl+powerLE0 SVar:TgtPow:Targeted$Valid Creature.powerLE0 -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up. -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.wizards.com/global/images/magic/general/the_hippodrome.jpg Oracle:All creatures get -5/-0.\nWhenever you roll {C}, you may destroy target creature if its power is 0 or less. SetInfo:HOP Common \ No newline at end of file diff --git a/res/cardsfolder/t/trail_of_the_mage_rings.txt b/res/cardsfolder/t/trail_of_the_mage_rings.txt index 0df8cc058a5..2f83a607563 100644 --- a/res/cardsfolder/t/trail_of_the_mage_rings.txt +++ b/res/cardsfolder/t/trail_of_the_mage_rings.txt @@ -4,10 +4,6 @@ Types:Plane Vryn S:Mode$ Continuous | AddKeyword$ Rebound | Affected$ Instant,Sorcery | AffectedZone$ Stack | EffectZone$ Command | Description$ Instant and sorcery spells have rebound. (The spell's controller exiles the spell as it resolves if he or she cast it from his or her hand. At the beginning of that player's next upkeep, he or she may cast that card from exile without paying its mana cost.) T:Mode$ PlanarDice | Result$ Chaos | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever you roll Chaos, you may search your library for an instant or sorcery card, reveal it, put it into your hand, then shuffle your library. SVar:RolledChaos:AB$ ChangeZone | Cost$ 0 | Origin$ Library | Destination$ Hand | ChangeType$ Instant,Sorcery | ChangeNum$ 1 -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.wizards.com/global/images/magic/general/trail_of_the_mage_rings.jpg Oracle:Instant and sorcery spells have rebound. (The spell's controller exiles the spell as it resolves if he or she cast it from his or her hand. At the beginning of that player's next upkeep, he or she may cast that card from exile without paying its mana cost.)\nWhenever you roll {C}, you may search your library for an instant or sorcery card, reveal it, put it into your hand, then shuffle your library. SetInfo:PC2 Common \ No newline at end of file diff --git a/res/cardsfolder/t/truga_jungle.txt b/res/cardsfolder/t/truga_jungle.txt index c0afd3b32bd..4a6fc2a9c99 100644 --- a/res/cardsfolder/t/truga_jungle.txt +++ b/res/cardsfolder/t/truga_jungle.txt @@ -5,10 +5,6 @@ S:Mode$ Continuous | EffectZone$ Command | AffectedZone$ Battlefield | Affected$ SVar:AnyMana:AB$ Mana | Cost$ T | Produced$ Any | Amount$ 1 | SpellDescription$ Add one mana of any color to your mana pool. T:Mode$ PlanarDice | Result$ Chaos | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever you roll Chaos, reveal the top three cards of your library. Put all land cards revealed this way into your hand and the rest on the bottom of your library in any order. SVar:RolledChaos:DB$ Dig | DigNum$ 3 | Reveal$ True | ChangeNum$ All | ChangeValid$ Land -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.wizards.com/global/images/magic/general/truga_jungle.jpg Oracle:All lands have "{T}: Add one mana of any color to your mana pool."\nWhenever you roll {C}, reveal the top three cards of your library. Put all land cards revealed this way into your hand and the rest on the bottom of your library in any order. SetInfo:PC2 Common \ No newline at end of file diff --git a/res/cardsfolder/t/turri_island.txt b/res/cardsfolder/t/turri_island.txt index db477f25647..21ceb77cbee 100644 --- a/res/cardsfolder/t/turri_island.txt +++ b/res/cardsfolder/t/turri_island.txt @@ -4,10 +4,6 @@ Types:Plane Ir S:Mode$ ReduceCost | EffectZone$ Command | ValidCard$ Creature | Type$ Spell | Amount$ 2 | Description$ Creature spells cost 2 less to cast. T:Mode$ PlanarDice | Result$ Chaos | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever you roll Chaos, reveal the top three cards of your library. Put all creature cards revealed this way into your hand and the rest into your graveyard. SVar:RolledChaos:AB$ Dig | Cost$ 0 | DigNum$ 3 | Reveal$ True | ChangeNum$ All | ChangeValid$ Creature | DestinationZone2$ Graveyard -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.wizards.com/global/images/magic/general/turri_island.jpg Oracle:Creature spells cost {2} less to cast.\nWhenever you roll {C}, reveal the top three cards of your library. Put all creature cards revealed this way into your hand and the rest into your graveyard. SetInfo:HOP Common \ No newline at end of file diff --git a/res/cardsfolder/u/undercity_reaches.txt b/res/cardsfolder/u/undercity_reaches.txt index 32a278c3fc7..7225f9274db 100644 --- a/res/cardsfolder/u/undercity_reaches.txt +++ b/res/cardsfolder/u/undercity_reaches.txt @@ -6,10 +6,6 @@ SVar:TrigDraw:AB$ Draw | Cost$ 0 | Defined$ TriggeredSourceController | NumCards T:Mode$ PlanarDice | Result$ Chaos | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever you roll Chaos, you have no maximum hand size for the rest of the game. SVar:RolledChaos:AB$ Effect | Cost$ 0 | Effect | Name$ Undercity Reaches Effect | StaticAbilities$ STHandSize | Duration$ Permanent SVar:STHandSize:Mode$ Continuous | EffectZone$ Command | Affected$ You | SetMaxHandSize$ Unlimited | Description$ You have no maximum hand size. -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up. -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.wizards.com/global/images/magic/general/undercity_reaches.jpg Oracle:Whenever a creature deals combat damage to a player, its controller may draw a card.\nWhenever you roll {C}, you have no maximum hand size for the rest of the game. SetInfo:HOP Common \ No newline at end of file diff --git a/res/cardsfolder/v/velis_vel.txt b/res/cardsfolder/v/velis_vel.txt index 3178a54889b..7b52c3aa5dd 100644 --- a/res/cardsfolder/v/velis_vel.txt +++ b/res/cardsfolder/v/velis_vel.txt @@ -5,10 +5,6 @@ S:Mode$ Continuous | Affected$ Creature | AddPower$ AffectedX | AddToughness$ Af SVar:AffectedX:Count$Valid Creature.sharesCreatureTypeWith+Other T:Mode$ PlanarDice | Result$ Chaos | TriggerZones$ Command | Execute$ RolledChaos | TriggerDescription$ Whenever you roll Chaos, target creature gains all creature types until end of turn. SVar:RolledChaos:AB$ Animate | Cost$ 0 | ValidTgts$ Creature | TgtPrompt$ Select target creature | Types$ AllCreatureTypes -T:Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the bottom of its owner's planar deck face down, then move the top card of your planar deck off that planar deck and turn it face up -SVar:RolledWalk:AB$ Planeswalk | Cost$ 0 -A:AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | ActivationZone$ Command | SpellDescription$ Roll the planar dice. -SVar:X:Count$RolledThisTurn SVar:Picture:http://www.wizards.com/global/images/magic/general/velis_vel.jpg Oracle:Each creature gets +1/+1 for each other creature on the battlefield that shares at least one creature type with it. (For example, if two Elemental Shamans and an Elemental Spirit are on the battlefield, each gets +2/+2.)\nWhenever you roll {C}, target creature gains all creature types until end of turn. SetInfo:HOP Common \ No newline at end of file diff --git a/src/main/java/forge/card/cardfactory/CardFactory.java b/src/main/java/forge/card/cardfactory/CardFactory.java index 2f280ccfe6a..98109794cb4 100644 --- a/src/main/java/forge/card/cardfactory/CardFactory.java +++ b/src/main/java/forge/card/cardfactory/CardFactory.java @@ -32,6 +32,7 @@ import forge.card.CardCharacteristics; import forge.card.CardRules; import forge.card.CardSplitType; import forge.card.ICardFace; +import forge.card.ability.AbilityFactory; import forge.card.cost.Cost; import forge.card.mana.ManaCost; import forge.card.replacement.ReplacementHandler; @@ -40,6 +41,7 @@ import forge.card.spellability.AbilitySub; import forge.card.spellability.SpellAbility; import forge.card.spellability.SpellPermanent; import forge.card.spellability.Target; +import forge.card.trigger.Trigger; import forge.card.trigger.TriggerHandler; import forge.game.player.Player; import forge.item.CardDb; @@ -303,13 +305,33 @@ public class CardFactory { CardFactorySorceries.buildCard(card, cardName); } else if (card.isArtifact()) { CardFactoryArtifacts.buildCard(card, cardName); + } else if (card.isType("Plane")) { + buildPlaneAbilities(card); } CardFactoryUtil.setupKeywordedAbilities(card); } // getCard2 + private static void buildPlaneAbilities(Card card) { + StringBuilder triggerSB = new StringBuilder(); + triggerSB.append("Mode$ PlanarDice | Result$ Planeswalk | TriggerZones$ Command | Execute$ RolledWalk | "); + triggerSB.append("Secondary$ True | TriggerDescription$ Whenever you roll Planeswalk, put this card on the "); + triggerSB.append("bottom of its owner's planar deck face down, then move the top card of your planar deck off "); + triggerSB.append("that planar deck and turn it face up"); + + StringBuilder saSB = new StringBuilder(); + saSB.append("AB$ RollPlanarDice | Cost$ X | SorcerySpeed$ True | AnyPlayer$ True | ActivationZone$ Command | "); + saSB.append("SpellDescription$ Roll the planar dice. X is equal to the amount of times the planar die has been rolled this turn."); + + card.setSVar("RolledWalk", "DB$ Planeswalk | Cost$ 0"); + Trigger planesWalkTrigger = TriggerHandler.parseTrigger(triggerSB.toString(), card, true); + card.addTrigger(planesWalkTrigger); + + card.setSVar("X", "Count$RolledThisTurn"); + SpellAbility planarRoll = AbilityFactory.getAbility(saSB.toString(), card); + card.addSpellAbility(planarRoll); + } - private static Card readCard(final CardRules rules) { final Card card = new Card();