From 00326240d466127bb15697138be2df664ae7c446 Mon Sep 17 00:00:00 2001 From: swordshine Date: Fri, 3 May 2019 12:47:20 +0800 Subject: [PATCH 1/5] WAR: add some cards --- forge-gui/res/cardsfolder/r/rescuer_sphinx.txt | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 forge-gui/res/cardsfolder/r/rescuer_sphinx.txt diff --git a/forge-gui/res/cardsfolder/r/rescuer_sphinx.txt b/forge-gui/res/cardsfolder/r/rescuer_sphinx.txt new file mode 100644 index 00000000000..a8b33e21ccf --- /dev/null +++ b/forge-gui/res/cardsfolder/r/rescuer_sphinx.txt @@ -0,0 +1,8 @@ +Name:Rescuer Sphinx +ManaCost:2 U U +Types:Creature Sphinx +PT:3/2 +K:Flying +K:ETBReplacement:Other:DBCounter +SVar:DBCounter:DB$ PutCounter | ETB$ True | Defined$ Self | CounterType$ P1P1 | CounterNum$ 1 | UnlessCost$ Return<1/Permanent.nonLand/nonland permanent> | UnlessSwitched$ True | UnlessPayer$ You | SpellDescription$ As CARDNAME enters the battlefield, you may return a nonland permanent you control to its owner's hand. If you do, CARDNAME enters the battlefield with a +1/+1 counter on it. +Oracle:Flying\nAs Rescuer Sphinx enters the battlefield, you may return a nonland permanent you control to its owner's hand. If you do, Rescuer Sphinx enters the battlefield with a +1/+1 counter on it. From a0f5afeaadc31c82da22fd5629766e11858ee9af Mon Sep 17 00:00:00 2001 From: swordshine Date: Fri, 3 May 2019 13:07:14 +0800 Subject: [PATCH 2/5] Add Vraska, Swarm's Eminence --- forge-gui/res/cardsfolder/v/vraska_swarms_eminence.txt | 8 ++++++++ forge-gui/res/tokenscripts/b_1_1_assassin_deathtouch.txt | 9 +++++++++ 2 files changed, 17 insertions(+) create mode 100644 forge-gui/res/cardsfolder/v/vraska_swarms_eminence.txt create mode 100644 forge-gui/res/tokenscripts/b_1_1_assassin_deathtouch.txt diff --git a/forge-gui/res/cardsfolder/v/vraska_swarms_eminence.txt b/forge-gui/res/cardsfolder/v/vraska_swarms_eminence.txt new file mode 100644 index 00000000000..4f4d8af1e92 --- /dev/null +++ b/forge-gui/res/cardsfolder/v/vraska_swarms_eminence.txt @@ -0,0 +1,8 @@ +Name:Vraska, Swarm's Eminence +ManaCost:2 B/G B/G +Types:Legendary Planeswalker Vraska +Loyalty:5 +T:Mode$ DamageDone | ValidSource$ Creature.YouCtrl+withDeathtouch | ValidTarget$ Player,Planeswalker | TriggerZones$ Battlefield | Execute$ TrigPutCounter | TriggerDescription$ Whenever a creature you control with deathtouch deals damage to a player or planeswalker, put a +1/+1 counter on that creature. +SVar:TrigPutCounter:DB$ PutCounter | Defined$ TriggeredSourceLKICopy | CounterType$ P1P1 | CounterNum$ 1 +A:AB$ Token | Cost$ SubCounter<2/LOYALTY> | Planeswalker$ True | TokenAmount$ 1 | TokenScript$ b_1_1_assassin_deathtouch | TokenOwner$ You | LegacyImage$ b 1 1 assassin deathtouch war | SpellDescription$ Create a 1/1 black Assassin creature token with deathtouch and "Whenever this creature deals damage to a planeswalker, destroy that planeswalker." +Oracle:Whenever a creature you control with deathtouch deals damage to a player or planeswalker, put a +1/+1 counter on that creature.\n[-2]: Create a 1/1 black Assassin creature token with deathtouch and "Whenever this creature deals damage to a planeswalker, destroy that planeswalker." diff --git a/forge-gui/res/tokenscripts/b_1_1_assassin_deathtouch.txt b/forge-gui/res/tokenscripts/b_1_1_assassin_deathtouch.txt new file mode 100644 index 00000000000..e83872c3074 --- /dev/null +++ b/forge-gui/res/tokenscripts/b_1_1_assassin_deathtouch.txt @@ -0,0 +1,9 @@ +Name:Assassin +ManaCost:no cost +Types:Creature Assassin +Colors:black +PT:1/1 +K:Deathtouch +T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Planeswalker | TriggerZones$ Battlefield | Execute$ TrigDestroyPW | TriggerDescription$ Whenever a creature you control with deathtouch deals damage to a player or planeswalker, put a +1/+1 counter on that creature. +SVar:TrigDestroyPW:DB$ Destroy | Defined$ TriggeredTarget +Oracle:Deathtouch\nWhenever this creature deals damage to a planeswalker, destroy that planeswalker. From be96de241d3bf6fc542daeeb2fa3895eb3ac6cb7 Mon Sep 17 00:00:00 2001 From: swordshine Date: Fri, 3 May 2019 16:11:13 +0800 Subject: [PATCH 3/5] Add God-Eternal Rhonas --- .../res/cardsfolder/g/god_eternal_oketra.txt | 6 ++++-- .../res/cardsfolder/g/god_eternal_rhonas.txt | 15 +++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 forge-gui/res/cardsfolder/g/god_eternal_rhonas.txt diff --git a/forge-gui/res/cardsfolder/g/god_eternal_oketra.txt b/forge-gui/res/cardsfolder/g/god_eternal_oketra.txt index ac1f2cd06f4..e90e0ce6037 100644 --- a/forge-gui/res/cardsfolder/g/god_eternal_oketra.txt +++ b/forge-gui/res/cardsfolder/g/god_eternal_oketra.txt @@ -6,6 +6,8 @@ K:Double Strike T:Mode$ SpellCast | ValidCard$ Creature | ValidActivatingPlayer$ You | Execute$ TrigToken | TriggerZones$ Battlefield | TriggerDescription$ Whenever you cast a creature spell, create a 4/4 black Zombie Warrior creature token with vigilance. SVar:TrigToken:DB$ Token | TokenAmount$ 1 | TokenScript$ b_4_4_zombie_warrior_vigilance | TokenOwner$ You | LegacyImage$ b 4 4 zombie warrior vigilance war DeckHas:Ability$Token -T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Exile | ValidCard$ Card.Self | Execute$ TrigChange | OptionalDecider$ You | TriggerController$ TriggeredCardController | TriggerDescription$ When CARDNAME dies or is put into exile from the battlefield, you may put it into its owner's library third from the top. -SVar:TrigChange:DB$ChangeZone | Defined$ TriggeredCard | Origin$ Graveyard | Destination$ Library | LibraryPosition$ 2 +T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.Self | Execute$ TrigFromGraveyard | OptionalDecider$ You | TriggerController$ TriggeredCardController | TriggerDescription$ When CARDNAME dies or is put into exile from the battlefield, you may put it into its owner's library third from the top. +SVar:TrigFromGraveyard:DB$ChangeZone | Defined$ TriggeredCard | Origin$ Graveyard | Destination$ Library | LibraryPosition$ 2 +T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Exile | ValidCard$ Card.Self | Execute$ TrigFromExile | OptionalDecider$ You | TriggerController$ TriggeredCardController | Secondary$ True | TriggerDescription$ When CARDNAME dies or is put into exile from the battlefield, you may put it into its owner's library third from the top. +SVar:TrigFromExile:DB$ChangeZone | Defined$ TriggeredCard | Origin$ Exile | Destination$ Library | LibraryPosition$ 2 Oracle:Double strike\nWhenever you cast a creature spell, create a 4/4 black Zombie Warrior creature token with vigilance.\nWhen God-Eternal Oketra dies or is put into exile from the battlefield, you may put it into its owner's library third from the top. diff --git a/forge-gui/res/cardsfolder/g/god_eternal_rhonas.txt b/forge-gui/res/cardsfolder/g/god_eternal_rhonas.txt new file mode 100644 index 00000000000..652f941ca2d --- /dev/null +++ b/forge-gui/res/cardsfolder/g/god_eternal_rhonas.txt @@ -0,0 +1,15 @@ +Name:God-Eternal Rhonas +ManaCost:3 G G +Types:Legendary Creature Zombie God +PT:5/5 +K:Deathtouch +T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigDoublePower | TriggerDescription$ When CARDNAME enters the battlefield, double the power of each other creature you control until end of turn. Those creatures gain vigilance until end of turn. +SVar:TrigDoublePower:DB$ RepeatEach | RepeatCards$ Creature.YouCtrl+Other | RepeatSubAbility$ DBPump | SubAbility$ DBPumpAll +SVar:DBPump:DB$ Pump | Defined$ Remembered | NumAtt$ X | References$ X +SVar:DBPumpAll:DB$ PumpAll | ValidCards$ Creature.YouCtrl+Other | KW$ Vigilance +SVar:X:Remembered$CardPower +T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Card.Self | Execute$ TrigFromGraveyard | OptionalDecider$ You | TriggerController$ TriggeredCardController | TriggerDescription$ When CARDNAME dies or is put into exile from the battlefield, you may put it into its owner's library third from the top. +SVar:TrigFromGraveyard:DB$ChangeZone | Defined$ TriggeredCard | Origin$ Graveyard | Destination$ Library | LibraryPosition$ 2 +T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Exile | ValidCard$ Card.Self | Execute$ TrigFromExile | OptionalDecider$ You | TriggerController$ TriggeredCardController | Secondary$ True | TriggerDescription$ When CARDNAME dies or is put into exile from the battlefield, you may put it into its owner's library third from the top. +SVar:TrigFromExile:DB$ChangeZone | Defined$ TriggeredCard | Origin$ Exile | Destination$ Library | LibraryPosition$ 2 +Oracle:Deathtouch\nWhen God-Eternal Rhonas enters the battlefield, double the power of each other creature you control until end of turn. Those creatures gain vigilance until end of turn.\nWhen God-Eternal Rhonas dies or is put into exile from the battlefield, you may put it into its owner's library third from the top. From 49e85c40b2f4bef0f3256c47ce252c8c3efc0692 Mon Sep 17 00:00:00 2001 From: swordshine Date: Fri, 3 May 2019 17:05:14 +0800 Subject: [PATCH 4/5] Add Command the Dreadhorde Fix assassin token's trigger description --- .../res/cardsfolder/c/command_the_dreadhorde.txt | 11 +++++++++++ .../res/tokenscripts/b_1_1_assassin_deathtouch.txt | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 forge-gui/res/cardsfolder/c/command_the_dreadhorde.txt diff --git a/forge-gui/res/cardsfolder/c/command_the_dreadhorde.txt b/forge-gui/res/cardsfolder/c/command_the_dreadhorde.txt new file mode 100644 index 00000000000..3e24bfd6170 --- /dev/null +++ b/forge-gui/res/cardsfolder/c/command_the_dreadhorde.txt @@ -0,0 +1,11 @@ +Name:Command the Dreadhorde +ManaCost:4 B B +Types:Sorcery +A:SP$ ChooseCard | Cost$ 4 B B | MinAmount$ 0 | Amount$ NumCreatPW | References$ NumCreatPW | ChoiceZone$ Graveyard | Choices$ Creature,Planeswalker | ChoiceTitle$ Choose any number of target creature and/or planeswalker cards in graveyards | RememberChosen$ True | SubAbility$ DBDamage | RememberTargets$ True | SpellDescription$ Choose any number of target creature and/or planeswalker cards in graveyards. CARDNAME deals damage to you equal to the total converted mana cost of those cards. Put them onto the battlefield under your control. +SVar:DBDamage:DB$ DealDamage | Defined$ You | NumDmg$ X | References$ X | SubAbility$ DBChangeZone +SVar:DBChangeZone:DB$ ChangeZone | Defined$ Remembered | GainControl$ True | Origin$ Graveyard | Destination$ Battlefield | SubAbility$ DBCleanup +SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True +SVar:NumCreatPW:Count$ValidGraveyard Creature,Planeswalker +SVar:X:Remembered$SumCMC +AI:RemoveDeck:All +Oracle:Choose any number of target creature and/or planeswalker cards in graveyards. Command the Dreadhorde deals damage to you equal to the total converted mana cost of those cards. Put them onto the battlefield under your control. diff --git a/forge-gui/res/tokenscripts/b_1_1_assassin_deathtouch.txt b/forge-gui/res/tokenscripts/b_1_1_assassin_deathtouch.txt index e83872c3074..fe85b363d86 100644 --- a/forge-gui/res/tokenscripts/b_1_1_assassin_deathtouch.txt +++ b/forge-gui/res/tokenscripts/b_1_1_assassin_deathtouch.txt @@ -4,6 +4,6 @@ Types:Creature Assassin Colors:black PT:1/1 K:Deathtouch -T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Planeswalker | TriggerZones$ Battlefield | Execute$ TrigDestroyPW | TriggerDescription$ Whenever a creature you control with deathtouch deals damage to a player or planeswalker, put a +1/+1 counter on that creature. +T:Mode$ DamageDone | ValidSource$ Card.Self | ValidTarget$ Planeswalker | TriggerZones$ Battlefield | Execute$ TrigDestroyPW | TriggerDescription$ Whenever this creature deals damage to a planeswalker, destroy that planeswalker. SVar:TrigDestroyPW:DB$ Destroy | Defined$ TriggeredTarget Oracle:Deathtouch\nWhenever this creature deals damage to a planeswalker, destroy that planeswalker. From 284ef835b37d3df5c14dbf1116c8a32aa1a11daf Mon Sep 17 00:00:00 2001 From: swordshine Date: Fri, 3 May 2019 17:09:39 +0800 Subject: [PATCH 5/5] Removed a param in Command the Dreadhorde --- forge-gui/res/cardsfolder/c/command_the_dreadhorde.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forge-gui/res/cardsfolder/c/command_the_dreadhorde.txt b/forge-gui/res/cardsfolder/c/command_the_dreadhorde.txt index 3e24bfd6170..664a48a277a 100644 --- a/forge-gui/res/cardsfolder/c/command_the_dreadhorde.txt +++ b/forge-gui/res/cardsfolder/c/command_the_dreadhorde.txt @@ -1,7 +1,7 @@ Name:Command the Dreadhorde ManaCost:4 B B Types:Sorcery -A:SP$ ChooseCard | Cost$ 4 B B | MinAmount$ 0 | Amount$ NumCreatPW | References$ NumCreatPW | ChoiceZone$ Graveyard | Choices$ Creature,Planeswalker | ChoiceTitle$ Choose any number of target creature and/or planeswalker cards in graveyards | RememberChosen$ True | SubAbility$ DBDamage | RememberTargets$ True | SpellDescription$ Choose any number of target creature and/or planeswalker cards in graveyards. CARDNAME deals damage to you equal to the total converted mana cost of those cards. Put them onto the battlefield under your control. +A:SP$ ChooseCard | Cost$ 4 B B | MinAmount$ 0 | Amount$ NumCreatPW | References$ NumCreatPW | ChoiceZone$ Graveyard | Choices$ Creature,Planeswalker | ChoiceTitle$ Choose any number of target creature and/or planeswalker cards in graveyards | RememberChosen$ True | SubAbility$ DBDamage | SpellDescription$ Choose any number of target creature and/or planeswalker cards in graveyards. CARDNAME deals damage to you equal to the total converted mana cost of those cards. Put them onto the battlefield under your control. SVar:DBDamage:DB$ DealDamage | Defined$ You | NumDmg$ X | References$ X | SubAbility$ DBChangeZone SVar:DBChangeZone:DB$ ChangeZone | Defined$ Remembered | GainControl$ True | Origin$ Graveyard | Destination$ Battlefield | SubAbility$ DBCleanup SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True