From 848e7c2d08e191d83535bf312894ff26415b75b7 Mon Sep 17 00:00:00 2001 From: Northmoc <103371817+Northmoc@users.noreply.github.com> Date: Fri, 26 Jan 2024 17:00:24 -0500 Subject: [PATCH] MKC: panoptic_projektor.txt + support (#4601) --- .../game/staticability/StaticAbilityPanharmonicon.java | 4 ++++ forge-gui/res/cardsfolder/i/invasion_of_the_giants.txt | 2 +- .../res/cardsfolder/upcoming/panoptic_projektor.txt | 10 ++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 forge-gui/res/cardsfolder/upcoming/panoptic_projektor.txt diff --git a/forge-game/src/main/java/forge/game/staticability/StaticAbilityPanharmonicon.java b/forge-game/src/main/java/forge/game/staticability/StaticAbilityPanharmonicon.java index cdede75f7c9..83fea6e7444 100644 --- a/forge-game/src/main/java/forge/game/staticability/StaticAbilityPanharmonicon.java +++ b/forge-game/src/main/java/forge/game/staticability/StaticAbilityPanharmonicon.java @@ -160,6 +160,10 @@ public class StaticAbilityPanharmonicon { if (!stAb.matchesValidParam("ValidTarget", runParams.get(AbilityKey.DamageTarget))) { return false; } + } else if (trigMode.equals(TriggerType.TurnFaceUp)) { + if (!stAb.matchesValidParam("ValidTurned", runParams.get(AbilityKey.Card))) { + return false; + } } return true; diff --git a/forge-gui/res/cardsfolder/i/invasion_of_the_giants.txt b/forge-gui/res/cardsfolder/i/invasion_of_the_giants.txt index d5dc94195e6..0e6f2e439de 100644 --- a/forge-gui/res/cardsfolder/i/invasion_of_the_giants.txt +++ b/forge-gui/res/cardsfolder/i/invasion_of_the_giants.txt @@ -7,7 +7,7 @@ SVar:DBDraw:DB$ Draw | NumCards$ 1 | SubAbility$ DBReveal | SpellDescription$ Dr SVar:DBReveal:DB$ ImmediateTrigger | Execute$ TrigDealDamage | UnlessCost$ Reveal<1/Giant> | UnlessPayer$ You | UnlessSwitched$ True | SpellDescription$ You may reveal a Giant card from your hand. When you do, CARDNAME deals 2 damage to target opponent or planeswalker. SVar:TrigDealDamage:DB$ DealDamage | ValidTgts$ Player.Opponent,Planeswalker | TgtPrompt$ Select target opponent or planeswalker. | NumDmg$ 2 SVar:DBEffect:DB$ Effect | StaticAbilities$ ReduceCost | Triggers$ TrigCastSpell | SpellDescription$ The next Giant spell you cast this turn costs {2} less to cast. -SVar:ReduceCost:Mode$ ReduceCost | EffectZone$ Command | Type$ Spell | ValidCard$ Giant | Activator$ You | Amount$ 2 +SVar:ReduceCost:Mode$ ReduceCost | EffectZone$ Command | Type$ Spell | ValidCard$ Giant | Activator$ You | Amount$ 2 | Description$ The next Giant spell you cast this turn costs {2} less to cast. SVar:TrigCastSpell:Mode$ SpellCast | ValidCard$ Giant | ValidActivatingPlayer$ You | TriggerZones$ Command | Execute$ RemoveEffect | Static$ True SVar:RemoveEffect:DB$ ChangeZone | Origin$ Command | Destination$ Exile DeckHints:Type$Giant diff --git a/forge-gui/res/cardsfolder/upcoming/panoptic_projektor.txt b/forge-gui/res/cardsfolder/upcoming/panoptic_projektor.txt new file mode 100644 index 00000000000..562cc65e7ab --- /dev/null +++ b/forge-gui/res/cardsfolder/upcoming/panoptic_projektor.txt @@ -0,0 +1,10 @@ +Name:Panoptic Projektor +ManaCost:4 +Types:Artifact +A:AB$ Effect | Cost$ T | StaticAbilities$ ReduceCost | Triggers$ TrigCastSpell | SpellDescription$ The next face-down creature spell you cast this turn costs {3} less to cast. +SVar:ReduceCost:Mode$ ReduceCost | EffectZone$ Command | Type$ Spell | ValidCard$ Creature.faceDown | Activator$ You | Amount$ 3 | Description$ The next face-down creature spell you cast this turn costs {3} less to cast. +SVar:TrigCastSpell:Mode$ SpellCast | ValidCard$ Creature.faceDown | ValidActivatingPlayer$ You | TriggerZones$ Command | Execute$ RemoveEffect | Static$ True +SVar:RemoveEffect:DB$ ChangeZone | Origin$ Command | Destination$ Exile +S:Mode$ Panharmonicon | ValidMode$ TurnFaceUp | ValidCard$ Permanent.YouCtrl | ValidTurned$ Permanent | Description$ If turning a face-down permanent face up causes a triggered ability of a permanent you control to trigger, that ability triggers an additional time. +DeckHints:Keyword$Morph|Megamorph|Disguise +Oracle:{T}: The next face-down creature spell you cast this turn costs {3} less to cast.\nIf turning a face-down permanent face up causes a triggered ability of a permanent you control to trigger, that ability triggers an additional time.