diff --git a/forge-game/src/main/java/forge/game/ability/effects/MakeCardEffect.java b/forge-game/src/main/java/forge/game/ability/effects/MakeCardEffect.java index 5d32044542b..7a0161ca96b 100644 --- a/forge-game/src/main/java/forge/game/ability/effects/MakeCardEffect.java +++ b/forge-game/src/main/java/forge/game/ability/effects/MakeCardEffect.java @@ -32,7 +32,10 @@ public class MakeCardEffect extends SpellAbilityEffect { } } if (sa.hasParam("DefinedName")) { - name = AbilityUtils.getDefinedCards(source, sa.getParam("DefinedName"), sa).getFirst().getName(); + final CardCollection def = AbilityUtils.getDefinedCards(source, sa.getParam("DefinedName"), sa); + if (def.size() > 0) { + name = def.getFirst().getName(); + } } final ZoneType zone = ZoneType.smartValueOf(sa.getParamOrDefault("Zone", "Library")); int amount = sa.hasParam("Amount") ? diff --git a/forge-gui/res/cardsfolder/upcoming/chronicler_of_worship.txt b/forge-gui/res/cardsfolder/upcoming/chronicler_of_worship.txt new file mode 100644 index 00000000000..afba135a8c5 --- /dev/null +++ b/forge-gui/res/cardsfolder/upcoming/chronicler_of_worship.txt @@ -0,0 +1,16 @@ +Name:Chronicler of Worship +ManaCost:1 G +Types:Creature Human Monk +PT:1/1 +T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigDigShrine | TriggerDescription$ When CARDNAME enters the battlefield, put a random Shrine card from among the top seven cards of your library into your hand. It perpetually gains "This spell costs {1} less to cast." Then shuffle. +SVar:TrigDigShrine:DB$ Dig | Defined$ You | DigNum$ 7 | ChangeNum$ 1 | ChangeValid$ Card.Shrine | RememberChanged$ True | RandomChange$ True | DestinationZone$ Hand | Mandatory$ True | NoLooking$ True | DestinationZone2$ Library | LibraryPosition2$ 0 | SkipReorder$ True | SubAbility$ DBEffect +SVar:DBEffect:DB$ Effect | RememberObjects$ Remembered | StaticAbilities$ PerpetualAbility | Name$ Chronicler of Worship's Perpetual Effect | Duration$ Permanent | SubAbility$ DBShuffle | Triggers$ Update +SVar:PerpetualAbility:Mode$ Continuous | Affected$ Card.IsRemembered | AddStaticAbility$ PerpetualReduce | EffectZone$ Command | AffectedZone$ Battlefield,Hand,Graveyard,Exile,Stack,Library,Command | Description$ The card perpetually gains "This spell costs {1} less to cast." +SVar:PerpetualReduce:Mode$ ReduceCost | ValidCard$ Card.Self | Type$ Spell | Amount$ 1 | EffectZone$ All | Description$ This spell costs {1} less to cast. +SVar:DBShuffle:DB$ Shuffle | Defined$ You | SubAbility$ DBCleanup +SVar:Update:Mode$ ChangesZone | Origin$ Any | Destination$ Any | Static$ True | ValidCard$ Card.IsRemembered | Execute$ DBUpdate +SVar:DBUpdate:DB$ UpdateRemember +SVar:DBCleanup:DB$ Cleanup | ClearRemembered$ True +A:AB$ Mana | Cost$ T | Produced$ Any | SpellDescription$ Add one mana of any color. +DeckNeeds:Type$Shrine +Oracle:When Chronicler of Worship enters the battlefield, put a random Shrine card from among the top seven cards of your library into your hand. It perpetually gains "This spell costs {1} less to cast." Then shuffle.\n{T}: Add one mana of any color. diff --git a/forge-gui/res/cardsfolder/upcoming/holographic_double.txt b/forge-gui/res/cardsfolder/upcoming/holographic_double.txt new file mode 100644 index 00000000000..fe0d41535dc --- /dev/null +++ b/forge-gui/res/cardsfolder/upcoming/holographic_double.txt @@ -0,0 +1,8 @@ +Name:Holographic Double +ManaCost:U +Types:Creature Illusion +PT:1/1 +A:AB$ ChooseCard | Cost$ U ExileFromHand<1/CARDNAME> | ActivationZone$ Hand | Mandatory$ True | ChoiceZone$ Hand | Choices$ Creature.YouOwn | ChoiceDesc$ creature | FromDesc$ from their hand | ChoiceTitle$ Choose a creature card in your hand | Amount$ 1 | SubAbility$ DBConjure | SpellDescription$ Choose a creature card in your hand. +SVar:DBConjure:DB$ MakeCard | DefinedName$ ChosenCard | Zone$ Hand | SubAbility$ DBCleanup | StackDescription$ {p:You} conjures a duplicate of it into their hand. | SpellDescription$ Conjure a duplicate of it into your hand. +SVar:DBCleanup:DB$ Cleanup | ClearChosenCard$ True +Oracle:{U}, Exile Holographic Double from your hand: Choose a creature card in your hand. Conjure a duplicate of it into your hand. diff --git a/forge-gui/res/cardsfolder/upcoming/painful_bond.txt b/forge-gui/res/cardsfolder/upcoming/painful_bond.txt new file mode 100644 index 00000000000..d8908c8145e --- /dev/null +++ b/forge-gui/res/cardsfolder/upcoming/painful_bond.txt @@ -0,0 +1,11 @@ +Name:Painful Bond +ManaCost:1 B +Types:Instant +A:SP$ Draw | Cost$ 1 B | NumCards$ 2 | SubAbility$ DBEffect | SpellDescription$ Draw two cards, then cards in your hand with mana value 3 or greater perpetually gain "When you cast this spell, you lose 1 life." +SVar:DBEffect:DB$ Effect | RememberObjects$ ValidHand Card.cmcGE3+YouOwn | StaticAbilities$ PerpetualAbility | Duration$ Permanent | Triggers$ Update | Name$ Painful Bond's Perpetual Effect | StackDescription$ Then cards in {p:You}'s hand with mana value 3 or greater perpetually gain "When you cast this spell, you lose 1 life." +SVar:PerpetualAbility:Mode$ Continuous | Affected$ Card.IsRemembered | AddTrigger$ CastSpellLoseLife | EffectZone$ Command | AffectedZone$ Battlefield,Hand,Graveyard,Exile,Stack,Library,Command | Description$ Cards in your hand with mana value 3 or greater perpetually gain "When you cast this spell, you lose 1 life." +SVar:CastSpellLoseLife:Mode$ SpellCast | ValidCard$ Card.Self | Execute$ TrigDrain | TriggerDescription$ When you cast this spell, you lose 1 life. +SVar:TrigDrain:DB$ LoseLife | LifeAmount$ 1 +SVar:Update:Mode$ ChangesZone | Origin$ Any | Destination$ Any | Static$ True | ValidCard$ Card.IsRemembered | Execute$ DBUpdate +SVar:DBUpdate:DB$ UpdateRemember +Oracle:Draw two cards, then cards in your hand with mana value 3 or greater perpetually gain "When you cast this spell, you lose 1 life."