From fe8ec70159bafd3684b14501ef0c56fef815dbf2 Mon Sep 17 00:00:00 2001 From: swordshine Date: Thu, 11 Jan 2018 11:09:08 +0800 Subject: [PATCH] - Added The Immortal Sun --- .../game/staticability/StaticAbilityCantBeCast.java | 4 ++++ .../res/cardsfolder/upcoming/the_immortal_sun.txt | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 forge-gui/res/cardsfolder/upcoming/the_immortal_sun.txt diff --git a/forge-game/src/main/java/forge/game/staticability/StaticAbilityCantBeCast.java b/forge-game/src/main/java/forge/game/staticability/StaticAbilityCantBeCast.java index c16eb0690ad..48474fc9242 100644 --- a/forge-game/src/main/java/forge/game/staticability/StaticAbilityCantBeCast.java +++ b/forge-game/src/main/java/forge/game/staticability/StaticAbilityCantBeCast.java @@ -119,6 +119,10 @@ public class StaticAbilityCantBeCast { return false; } + if (params.containsKey("Loyalty") && !(spellAbility.getRestrictions().isPwAbility())) { + return false; + } + if (params.containsKey("TapAbility") && !(spellAbility.getPayCosts().hasTapCost())) { return false; } diff --git a/forge-gui/res/cardsfolder/upcoming/the_immortal_sun.txt b/forge-gui/res/cardsfolder/upcoming/the_immortal_sun.txt new file mode 100644 index 00000000000..f3dd673daf1 --- /dev/null +++ b/forge-gui/res/cardsfolder/upcoming/the_immortal_sun.txt @@ -0,0 +1,10 @@ +Name:The Immortal Sun +ManaCost:6 +Types:Legendary Artifact +S:Mode$ CantBeActivated | Activator$ Player | ValidCard$ Planeswalker | Loyalty$ True | Description$ Players can't activate planeswalkers' loyalty abilities. +T:Mode$ Phase | Phase$ Draw | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigDraw | TriggerDescription$ At the beginning of your draw step, draw an additional card. +SVar:TrigDraw:DB$Draw | NumCards$ 1 +S:Mode$ ReduceCost | Type$ Spell | Activator$ You | Amount$ 1 | Description$ Spells you cast cost {1} less to cast. +S:Mode$ Continuous | Affected$ Creature.YouCtrl | AddPower$ 1 | AddToughness$ 1 | Description$ Creatures you control get +1/+1. +SVar:Picture:http://www.wizards.com/global/images/magic/general/the_immortal_sun.jpg +Oracle:Players can't activate planeswalkers' loyalty abilities.\nAt the beginning of your draw step, draw an additional card.\nSpells you cast cost {1} less to cast.\nCreatures you control get +1/+1.