From 6961de8e6bc7b525ebfeb038e04d7d59558fd15c Mon Sep 17 00:00:00 2001 From: Renato Filipe Vidal Santos <45150760+dracontes@users.noreply.github.com> Date: Thu, 22 Feb 2024 21:06:50 +0000 Subject: [PATCH] Various card scripts (CLU, PIP), minor fixes (#4713) --- forge-gui/res/cardsfolder/c/crag_puca.txt | 2 +- forge-gui/res/cardsfolder/g/graveyard_shovel.txt | 2 +- forge-gui/res/cardsfolder/h/hatchet_bully.txt | 2 +- forge-gui/res/cardsfolder/m/myr_quadropod.txt | 2 +- forge-gui/res/cardsfolder/s/smogbelcher_chariot.txt | 2 +- .../cardsfolder/upcoming/agent_frank_horrigan.txt | 13 +++++++++++++ .../res/cardsfolder/upcoming/herald_of_ilharg.txt | 12 ++++++++++++ .../cardsfolder/upcoming/incriminating_impetus.txt | 9 +++++++++ .../res/cardsfolder/upcoming/portal_manipulator.txt | 10 ++++++++++ .../upcoming/preston_garvey_minuteman.txt | 11 +++++++++++ .../res/cardsfolder/upcoming/scuttling_sentinel.txt | 11 +++++++++++ .../cardsfolder/upcoming/tomik_wielder_of_law.txt | 2 +- forge-gui/res/tokenscripts/settlement.txt | 9 +++++++++ 13 files changed, 81 insertions(+), 6 deletions(-) create mode 100644 forge-gui/res/cardsfolder/upcoming/agent_frank_horrigan.txt create mode 100644 forge-gui/res/cardsfolder/upcoming/herald_of_ilharg.txt create mode 100644 forge-gui/res/cardsfolder/upcoming/incriminating_impetus.txt create mode 100644 forge-gui/res/cardsfolder/upcoming/portal_manipulator.txt create mode 100644 forge-gui/res/cardsfolder/upcoming/preston_garvey_minuteman.txt create mode 100644 forge-gui/res/cardsfolder/upcoming/scuttling_sentinel.txt create mode 100644 forge-gui/res/tokenscripts/settlement.txt diff --git a/forge-gui/res/cardsfolder/c/crag_puca.txt b/forge-gui/res/cardsfolder/c/crag_puca.txt index fe34a798126..c0a42292c3c 100644 --- a/forge-gui/res/cardsfolder/c/crag_puca.txt +++ b/forge-gui/res/cardsfolder/c/crag_puca.txt @@ -2,6 +2,6 @@ Name:Crag Puca ManaCost:UR UR UR Types:Creature Shapeshifter PT:2/4 -A:AB$ Pump | Cost$ UR | Defined$ Self | | AILogic$ SwitchPT | KW$ HIDDEN CARDNAME's power and toughness are switched | SpellDescription$ Switch CARDNAME's power and toughness until end of turn. +A:AB$ Pump | Cost$ UR | Defined$ Self | AILogic$ SwitchPT | KW$ HIDDEN CARDNAME's power and toughness are switched | SpellDescription$ Switch CARDNAME's power and toughness until end of turn. AI:RemoveDeck:All Oracle:{U/R}: Switch Crag Puca's power and toughness until end of turn. diff --git a/forge-gui/res/cardsfolder/g/graveyard_shovel.txt b/forge-gui/res/cardsfolder/g/graveyard_shovel.txt index 4e47ac403ab..520581fcebe 100644 --- a/forge-gui/res/cardsfolder/g/graveyard_shovel.txt +++ b/forge-gui/res/cardsfolder/g/graveyard_shovel.txt @@ -2,6 +2,6 @@ Name:Graveyard Shovel ManaCost:2 Types:Artifact A:AB$ ChangeZone | Cost$ 2 T | ValidTgts$ Player | DefinedPlayer$ Targeted | TgtPrompt$ Select target player | Origin$ Graveyard | Destination$ Exile | ChangeType$ Card | ChangeNum$ 1 | Hidden$ True | Chooser$ Targeted | Mandatory$ True | SubAbility$ DBGainLife | ForgetOtherTargets$ True | RememberChanged$ True | IsCurse$ True | StackDescription$ Target player exiles a card from their graveyard. If it's a creature card, you gain 2 life. | SpellDescription$ Target player exiles a card from their graveyard. If it's a creature card, you gain 2 life. -SVar:DBGainLife:DB$ GainLife | Defined$ You | LifeAmount$ 2 | ConditionDefined$ Remembered | ConditionnPresent$ Creature | SubAbility$ DBCleanup +SVar:DBGainLife:DB$ GainLife | Defined$ You | LifeAmount$ 2 | ConditionDefined$ Remembered | ConditionPresent$ Creature | SubAbility$ DBCleanup SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True Oracle:{2}, {T}: Target player exiles a card from their graveyard. If it's a creature card, you gain 2 life. diff --git a/forge-gui/res/cardsfolder/h/hatchet_bully.txt b/forge-gui/res/cardsfolder/h/hatchet_bully.txt index bf79d7a869a..dabf07043bc 100644 --- a/forge-gui/res/cardsfolder/h/hatchet_bully.txt +++ b/forge-gui/res/cardsfolder/h/hatchet_bully.txt @@ -2,5 +2,5 @@ Name:Hatchet Bully ManaCost:3 R Types:Creature Goblin Warrior PT:3/3 -A:AB$ DealDamage | Cost$ 2 R T AddCounter<1/M1M1/Creature.YouCtrl/a creature you control> | | ValidTgts$ Any | NumDmg$ 2 | SpellDescription$ CARDNAME deals 2 damage to any target. +A:AB$ DealDamage | Cost$ 2 R T AddCounter<1/M1M1/Creature.YouCtrl/a creature you control> | ValidTgts$ Any | NumDmg$ 2 | SpellDescription$ CARDNAME deals 2 damage to any target. Oracle:{2}{R}, {T}, Put a -1/-1 counter on a creature you control: Hatchet Bully deals 2 damage to any target. diff --git a/forge-gui/res/cardsfolder/m/myr_quadropod.txt b/forge-gui/res/cardsfolder/m/myr_quadropod.txt index 02379169222..0863dbef1ec 100644 --- a/forge-gui/res/cardsfolder/m/myr_quadropod.txt +++ b/forge-gui/res/cardsfolder/m/myr_quadropod.txt @@ -2,6 +2,6 @@ Name:Myr Quadropod ManaCost:4 Types:Artifact Creature Myr PT:1/4 -A:AB$ Pump | Cost$ 3 | Defined$ Self | | AILogic$ SwitchPT | KW$ HIDDEN CARDNAME's power and toughness are switched | SpellDescription$ Switch CARDNAME's power and toughness until end of turn. +A:AB$ Pump | Cost$ 3 | Defined$ Self | AILogic$ SwitchPT | KW$ HIDDEN CARDNAME's power and toughness are switched | SpellDescription$ Switch CARDNAME's power and toughness until end of turn. AI:RemoveDeck:All Oracle:{3}: Switch Myr Quadropod's power and toughness until end of turn. diff --git a/forge-gui/res/cardsfolder/s/smogbelcher_chariot.txt b/forge-gui/res/cardsfolder/s/smogbelcher_chariot.txt index 0becc95a1be..cc37a7e0d98 100644 --- a/forge-gui/res/cardsfolder/s/smogbelcher_chariot.txt +++ b/forge-gui/res/cardsfolder/s/smogbelcher_chariot.txt @@ -15,4 +15,4 @@ SVar:TrigPump:DB$ Pump | ValidTgts$ Card.IsRemembered | TgtPrompt$ Select target K:Crew:3 SVar:HasAttackEffect:TRUE DeckHas:Ability$LifeGain -Oracle:Menace,Deathtouch,Lifelink\nWhenever Smogbelcher Chariot attacks, target creature that crewed it this turn perpetually gains your choice of menace, deathtouch, or lifelink.\nCrew 3 +Oracle:Menace, deathtouch, lifelink\nWhenever Smogbelcher Chariot attacks, target creature that crewed it this turn perpetually gains your choice of menace, deathtouch, or lifelink.\nCrew 3 diff --git a/forge-gui/res/cardsfolder/upcoming/agent_frank_horrigan.txt b/forge-gui/res/cardsfolder/upcoming/agent_frank_horrigan.txt new file mode 100644 index 00000000000..121f9656b9b --- /dev/null +++ b/forge-gui/res/cardsfolder/upcoming/agent_frank_horrigan.txt @@ -0,0 +1,13 @@ +Name:Agent Frank Horrigan +ManaCost:5 B G +Types:Legendary Creature Mutant Warrior +PT:8/6 +K:Trample +S:Mode$ Continuous | Affected$ Card.Self+attackedThisTurn | AddKeyword$ Indestructible | Description$ CARDNAME has indestructible as long as it attacked this turn. +T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigProliferate | TriggerDescription$ Whenever CARDNAME enters the battlefield or attacks, proliferate twice. (To proliferate, choose any number of permanents and/or players, then give each another counter of each kind already there.) +T:Mode$ Attacks | ValidCard$ Card.Self | Execute$ TrigProliferate | TriggerZones$ Battlefield | Secondary$ True | TriggerDescription$ Whenever CARDNAME enters the battlefield or attacks, proliferate twice. (To proliferate, choose any number of permanents and/or players, then give each another counter of each kind already there.) +SVar:TrigProliferate:DB$ Proliferate | Amount$ 2 +SVar:HasAttackEffect:TRUE +DeckHas:Ability$Proliferate|Counters +DeckNeeds:Ability$Counters +Oracle:Trample\nAgent Frank Horrigan has indestructible as long as it attacked this turn.\nWhenever Agent Frank Horrigan enters the battlefield or attacks, proliferate twice. (To proliferate, choose any number of permanents and/or players, then give each another counter of each kind already there.) diff --git a/forge-gui/res/cardsfolder/upcoming/herald_of_ilharg.txt b/forge-gui/res/cardsfolder/upcoming/herald_of_ilharg.txt new file mode 100644 index 00000000000..0ab1058bbc9 --- /dev/null +++ b/forge-gui/res/cardsfolder/upcoming/herald_of_ilharg.txt @@ -0,0 +1,12 @@ +Name:Herald of Ilharg +ManaCost:2 R G +Types:Creature Boar Beast +PT:3/3 +K:Trample +T:Mode$ SpellCast | ValidCard$ Creature | ValidActivatingPlayer$ You | Execute$ TrigPutCounter | TriggerZones$ Battlefield | TriggerDescription$ Whenever you cast a creature spell, put two +1/+1 counters on CARDNAME. If that spell has mana value 5 or greater, CARDNAME deals damage equal to the number of counters on it to each opponent. +SVar:TrigPutCounter:DB$ PutCounter | Defined$ Self | CounterType$ P1P1 | CounterNum$ 2 | SubAbility$ DBDealDamage +SVar:DBDealDamage:DB$ DealDamage | ConditionCheckSVar$ TriggeredStackInstance$CardManaCostLKI | ConditionSVarCompare$ GE5 | Defined$ Player.Opponent | NumDmg$ X +SVar:X:Count$CardCounters.ALL +DeckNeeds:Type$Creature +DeckHas:Ability$Counters +Oracle:Trample\nWhenever you cast a creature spell, put two +1/+1 counters on Herald of Ilharg. If that spell has mana value 5 or greater, Herald of Ilharg deals damage equal to the number of counters on it to each opponent. diff --git a/forge-gui/res/cardsfolder/upcoming/incriminating_impetus.txt b/forge-gui/res/cardsfolder/upcoming/incriminating_impetus.txt new file mode 100644 index 00000000000..3fa3e33648b --- /dev/null +++ b/forge-gui/res/cardsfolder/upcoming/incriminating_impetus.txt @@ -0,0 +1,9 @@ +Name:Incriminating Impetus +ManaCost:2 BR +Types:Enchantment Aura +K:Enchant creature +A:SP$ Attach | ValidTgts$ Creature | AILogic$ Pump +T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigSuspect | TriggerDescription$ When CARDNAME enters the battlefield, suspect enchanted creature. (It has menace and can't block.) +SVar:TrigSuspect:DB$ AlterAttribute | Defined$ Enchanted | Attributes$ Suspected +S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddPower$ 2 | AddToughness$ 2 | Goad$ True | Description$ Enchanted creature gets +2/+2 and is goaded. (It attacks each combat if able and attacks a player other than you if able.) +Oracle:Enchant creature\nWhen Incriminating Impetus enters the battlefield, suspect enchanted creature. (It has menace and can’t block.)\nEnchanted creature gets +2/+2 and is goaded. (It attacks each combat if able and attacks a player other than you if able.) diff --git a/forge-gui/res/cardsfolder/upcoming/portal_manipulator.txt b/forge-gui/res/cardsfolder/upcoming/portal_manipulator.txt new file mode 100644 index 00000000000..5415986edd7 --- /dev/null +++ b/forge-gui/res/cardsfolder/upcoming/portal_manipulator.txt @@ -0,0 +1,10 @@ +Name:Portal Manipulator +ManaCost:2 WU WU +Types:Creature Human Wizard +PT:3/2 +K:Flash +T:Mode$ ChangesZone | Phase$ Declare Attackers | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigChoosePlayer | TriggerDescription$ When CARDNAME enters the battlefield during the declare attackers step, choose target player and any number of target attacking creatures their opponents control. Those creatures are now attacking that player. +SVar:TrigChoosePlayer:DB$ Pump | ValidTgts$ Player | SubAbility$ DBChooseAttackers +SVar:DBChooseAttackers:DB$ ChangeCombatants | ValidTgts$ Creature.attacking | TargetsWithDefinedController$ Player.OpponentOf ParentTarget | TargetMin$ 0 | TargetMax$ MaxTargets | TgtPrompt$ Select any number of target attacking creatures controlled by target player's opponents | Attacking$ TargetedPlayer +SVar:MaxTargets:Count$Valid Creature.attacking+ControlledBy Player.OpponentOf ParentTarget +Oracle:Flash\nWhen Portal Manipulator enters the battlefield during the declare attackers step, choose target player and any number of target attacking creatures their opponents control. Those creatures are now attacking that player. diff --git a/forge-gui/res/cardsfolder/upcoming/preston_garvey_minuteman.txt b/forge-gui/res/cardsfolder/upcoming/preston_garvey_minuteman.txt new file mode 100644 index 00000000000..5b0a3be0df4 --- /dev/null +++ b/forge-gui/res/cardsfolder/upcoming/preston_garvey_minuteman.txt @@ -0,0 +1,11 @@ +Name:Preston Garvey, Minuteman +ManaCost:2 R G W +Types:Legendary Creature Human Soldier +PT:4/4 +T:Mode$ Phase | Phase$ BeginCombat | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigToken | TriggerDescription$ At the beginning of combat on your turn, create a green Aura enchantment token named Settlement attached to up to one target land you control. It has enchant land and "Enchanted land has '{T}: Add one mana of any color.'" +SVar:TrigToken:DB$ Token | TokenScript$ settlement | TokenAmount$ 1 | TokenOwner$ You | TargetMin$ 0 | TargetMax$ 1 | AttachedTo$ Targeted | ValidTgts$ Land.YouCtrl | TgtPrompt$ Select up to one target land you control +T:Mode$ Attacks | ValidCard$ Card.Self | Execute$ TrigUntapAll | TriggerDescription$ Whenever CARDNAME attacks, untap each enchanted permanent you control. +SVar:TrigUntapAll:DB$ UntapAll | ValidCards$ Permanent.enchanted+YouCtrl +DeckHas:Ability$Token +SVar:BuffedBy:Permanent.enchanted +Oracle:At the beginning of combat on your turn, create a green Aura enchantment token named Settlement attached to up to one target land you control. It has enchant land and "Enchanted land has '{T}: Add one mana of any color.'"\nWhenever Preston Garvey, Minuteman attacks, untap each enchanted permanent you control. diff --git a/forge-gui/res/cardsfolder/upcoming/scuttling_sentinel.txt b/forge-gui/res/cardsfolder/upcoming/scuttling_sentinel.txt new file mode 100644 index 00000000000..0030e733706 --- /dev/null +++ b/forge-gui/res/cardsfolder/upcoming/scuttling_sentinel.txt @@ -0,0 +1,11 @@ +Name:Scuttling Sentinel +ManaCost:1 GU GU +Types:Creature Crab Elf +PT:3/2 +K:Flash +K:Vigilance +T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigPut | TriggerDescription$ When CARDNAME enters the battlefield, put a +1/+1 counter on another target creature you control. Until end of turn, that creature becomes a blue Crab in addition to its other types and gains hexproof. (It can't be the target of spells or abilities your opponents control.) +SVar:TrigPut:DB$ PutCounter | ValidTgts$ Creature.Other+YouCtrl | TgtPrompt$ Select another target creature you control | CounterType$ P1P1 | CounterNum$ 1 | SubAbility$ DBAnimate +SVar:DBAnimate:DB$ Animate | Defined$ Targeted | Types$ Crab | Colors$ Blue | OverwriteColors$ True | Keywords$ Hexproof +DeckHas:Ability$Counters & Type$Crab +Oracle:Flash\nVigilance\nWhen Scuttling Sentinel enters the battlefield, put a +1/+1 counter on another target creature you control. Until end of turn, that creature becomes a blue Crab in addition to its other types and gains hexproof. (It can't be the target of spells or abilities your opponents control.) diff --git a/forge-gui/res/cardsfolder/upcoming/tomik_wielder_of_law.txt b/forge-gui/res/cardsfolder/upcoming/tomik_wielder_of_law.txt index b24d8833742..ed278c7d4cd 100644 --- a/forge-gui/res/cardsfolder/upcoming/tomik_wielder_of_law.txt +++ b/forge-gui/res/cardsfolder/upcoming/tomik_wielder_of_law.txt @@ -6,7 +6,7 @@ K:Affinity:Planeswalker K:Flying K:Vigilance T:Mode$ AttackersDeclared | AttackingPlayer$ Player.Opponent | CheckSVar$ X | SVarCompare$ GE2 | Execute$ TrigDrain | TriggerZones$ Battlefield | TriggerDescription$ Whenever an opponent attacks with creatures, if two or more of those creatures are attacking you and/or planeswalkers you control, that opponent loses 3 life and you draw a card. -SVar:TrigDrain:DB$ LoseLife | Defined$ Defined$ TriggeredAttackingPlayer | LifeAmount$ 3 | SubAbility$ DBDraw +SVar:TrigDrain:DB$ LoseLife | Defined$ TriggeredAttackingPlayer | LifeAmount$ 3 | SubAbility$ DBDraw SVar:DBDraw:DB$ Draw | NumCards$ 1 | Defined$ You SVar:X:Count$ValidAll Creature.attackingYouOrYourPWLKI DeckHas:Type$Planeswalker diff --git a/forge-gui/res/tokenscripts/settlement.txt b/forge-gui/res/tokenscripts/settlement.txt new file mode 100644 index 00000000000..39de00286b9 --- /dev/null +++ b/forge-gui/res/tokenscripts/settlement.txt @@ -0,0 +1,9 @@ +Name:Settlement +ManaCost:no cost +Types:Enchantment Aura +Colors:green +K:Enchant land +A:SP$ Attach | Cost$ 0 | ValidTgts$ Land | AILogic$ Pump +S:Mode$ Continuous | Affected$ Card.EnchantedBy | AddAbility$ SettlementTap | Description$ Enchanted land has "{T}: Add one mana of any color." +SVar:SettlementTap:AB$ Mana | Cost$ T | Produced$ Any | SpellDescription$ Add one mana of any color. +Oracle:Enchant land\nEnchanted land has "{T}: Add one mana of any color."