From 7c93ed151b669a0dfae0fff38a3dd1b673070c11 Mon Sep 17 00:00:00 2001 From: moomarc Date: Tue, 5 Feb 2013 08:58:08 +0000 Subject: [PATCH] - Added plane: Talon Gates --- .gitattributes | 1 + res/cardsfolder/j/jhoira_of_the_ghitu.txt | 6 +++--- res/cardsfolder/t/talon_gates.txt | 19 +++++++++++++++++++ .../abilityfactory/effects/PumpAllEffect.java | 3 +++ 4 files changed, 26 insertions(+), 3 deletions(-) create mode 100644 res/cardsfolder/t/talon_gates.txt diff --git a/.gitattributes b/.gitattributes index 2d939bec21e..67f91894af1 100644 --- a/.gitattributes +++ b/.gitattributes @@ -10407,6 +10407,7 @@ res/cardsfolder/t/talisman_of_indulgence.txt svneol=native#text/plain res/cardsfolder/t/talisman_of_progress.txt svneol=native#text/plain res/cardsfolder/t/talisman_of_unity.txt svneol=native#text/plain res/cardsfolder/t/tallowisp.txt svneol=native#text/plain +res/cardsfolder/t/talon_gates.txt -text res/cardsfolder/t/talon_of_pain.txt -text res/cardsfolder/t/talon_sliver.txt svneol=native#text/plain res/cardsfolder/t/talon_trooper.txt svneol=native#text/plain diff --git a/res/cardsfolder/j/jhoira_of_the_ghitu.txt b/res/cardsfolder/j/jhoira_of_the_ghitu.txt index aa6a3bd6f32..0bcb9a3f965 100644 --- a/res/cardsfolder/j/jhoira_of_the_ghitu.txt +++ b/res/cardsfolder/j/jhoira_of_the_ghitu.txt @@ -2,10 +2,10 @@ Name:Jhoira of the Ghitu ManaCost:1 U R Types:Legendary Creature Human Wizard Text:no text -A:AB$ PutCounter | Cost$ 2 ExileFromHand<1/Card.nonLand/nonland card> | CostDesc$ 2, Exile a nonland card from your hand: | RememberCostCards$ True | Defined$ Remembered | CounterType$ TIME | CounterNum$ 4 | SubAbility$ GiveSuspend | TgtZone$ Exile | StackDescription$ Put four time counters on the exiled card. If it doesn't have suspend, it gains suspend. | SpellDescription$ Put four time counters on the exiled card. If it doesn't have suspend, it gains suspend. (At the beginning of your upkeep, remove a time counter from that card. When the last is removed, cast it without paying its mana cost. If it's a creature, it has haste.) -SVar:GiveSuspend:DB$ Pump | Defined$ Remembered | KW$ Suspend | PumpZone$ Exile | Permanent$ True | SubAbility$ DBCleanup | StackDescription$ If it doesn't have suspend, it gains suspend. -SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True PT:2/2 +A:AB$ PutCounter | Cost$ 2 ExileFromHand<1/Card.nonLand/nonland card> | CostDesc$ 2, Exile a nonland card from your hand: | RememberCostCards$ True | Defined$ Remembered | CounterType$ TIME | CounterNum$ 4 | SubAbility$ GiveSuspend | TgtZone$ Exile | StackDescription$ Put four time counters on the exiled card. | SpellDescription$ Put four time counters on the exiled card. If it doesn't have suspend, it gains suspend. (At the beginning of your upkeep, remove a time counter from that card. When the last is removed, cast it without paying its mana cost. If it's a creature, it has haste.) +SVar:GiveSuspend:DB$ PumpAll | ValidCards$ Card.IsRemembered+withoutSuspend | KW$ Suspend | PumpZone$ Exile | Permanent$ True | SubAbility$ DBCleanup | StackDescription$ If it doesn't have suspend, it gains suspend. +SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True SVar:RemRandomDeck:True SVar:Rarity:Rare SVar:Picture:http://www.wizards.com/global/images/magic/general/jhoira_of_the_ghitu.jpg diff --git a/res/cardsfolder/t/talon_gates.txt b/res/cardsfolder/t/talon_gates.txt new file mode 100644 index 00000000000..cced263fc1a --- /dev/null +++ b/res/cardsfolder/t/talon_gates.txt @@ -0,0 +1,19 @@ +Name:Talon Gates +ManaCost:no cost +Types:Plane Dominaria +Text:no text +A:AB$ ChangeZone | Cost$ 0 | Origin$ Hand | Destination$ Exile | ChangeType$ Card.nonLand+YouCtrl | DefinedPlayer$ You | RememberChanged$ True | SorcerySpeed$ True | ActivationZone$ Command | SubAbility$ TimeInGates | StackDescription$ 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. | SpellDescription$ 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.) +SVar:TimeInGates:DB$ PutCounter | Defined$ Remembered | CounterType$ TIME | CounterNum$ GateX | References$ GateX | SubAbility$ GiveSuspend | TgtZone$ Exile | StackDescription$ None +SVar:GiveSuspend:DB$ PumpAll | ValidCards$ Card.IsRemembered+withoutSuspend | KW$ Suspend | PumpZone$ Exile | Permanent$ True | SubAbility$ DBCleanup | StackDescription$ If it doesn't have suspend, it gains suspend. +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 +SetInfo:PC2|Common|http://magiccards.info/extras/plane/planechase-2012-edition/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. +End \ No newline at end of file diff --git a/src/main/java/forge/card/abilityfactory/effects/PumpAllEffect.java b/src/main/java/forge/card/abilityfactory/effects/PumpAllEffect.java index 576764a9fb9..2ba16124384 100644 --- a/src/main/java/forge/card/abilityfactory/effects/PumpAllEffect.java +++ b/src/main/java/forge/card/abilityfactory/effects/PumpAllEffect.java @@ -88,6 +88,9 @@ public class PumpAllEffect extends SpellEffect { for (int i = 0; i < keywords.size(); i++) { tgtC.addExtrinsicKeyword(keywords.get(i)); + if (keywords.get(i).equals("Suspend")) { + tgtC.setSuspend(true); + } } if (!sa.hasParam("Permanent")) {