From ce34e937d67d4ef78bd18ff675416c68f9770eb3 Mon Sep 17 00:00:00 2001 From: Hans Mackowiak Date: Wed, 14 Apr 2021 17:48:42 +0200 Subject: [PATCH] CostExile: fixed exile cost with mana value X --- forge-game/src/main/java/forge/game/cost/CostExile.java | 4 +++- .../res/cardsfolder/upcoming/osgir_the_reconstructor.txt | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/forge-game/src/main/java/forge/game/cost/CostExile.java b/forge-game/src/main/java/forge/game/cost/CostExile.java index 58e69a36baa..a08efb3f9bf 100644 --- a/forge-game/src/main/java/forge/game/cost/CostExile.java +++ b/forge-game/src/main/java/forge/game/cost/CostExile.java @@ -141,7 +141,9 @@ public class CostExile extends CostPartWithList { return list.contains(source); } - list = CardLists.getValidCards(list, type.split(";"), payer, source, ability); + if (!type.contains("X")) { + list = CardLists.getValidCards(list, type.split(";"), payer, source, ability); + } final Integer amount = this.convertAmount(); if ((amount != null) && (list.size() < amount)) { diff --git a/forge-gui/res/cardsfolder/upcoming/osgir_the_reconstructor.txt b/forge-gui/res/cardsfolder/upcoming/osgir_the_reconstructor.txt index 0b3ee5ed526..d1ff8a3474e 100644 --- a/forge-gui/res/cardsfolder/upcoming/osgir_the_reconstructor.txt +++ b/forge-gui/res/cardsfolder/upcoming/osgir_the_reconstructor.txt @@ -4,7 +4,7 @@ Types:Legendary Creature Giant Artificer PT:4/4 K:Vigilance A:AB$ Pump | Cost$ 1 Sac<1/Artifact> | NumAtt$ +2 | ValidTgts$ Creature.YouCtrl | TgtPrompt$ Select target creature you control | SpellDescription$ Target creature you control gets +2/+0 until end of turn. -A:AB$ CopyPermanent | Cost$ T Mana ExileFromGrave<1/Artifact> | Defined$ Exiled | NumCopies$ 2 | SorcerySpeed$ True | StackDescription$ SpellDescription | SpellDescription$ Create two tokens that are copies of the exiled card. Activate only as a sorcery. +A:AB$ CopyPermanent | Cost$ X T ExileFromGrave<1/Artifact.cmcEQX/artifact card with mana value X> | Defined$ Exiled | NumCopies$ 2 | SorcerySpeed$ True | StackDescription$ SpellDescription | SpellDescription$ Create two tokens that are copies of the exiled card. Activate only as a sorcery. SVar:X:Count$xPaid DeckHas:Ability$Token DeckHints:Type$Artifact