CostExile: fixed exile cost with mana value X

This commit is contained in:
Hans Mackowiak
2021-04-14 17:48:42 +02:00
parent ef895777ca
commit ce34e937d6
2 changed files with 4 additions and 2 deletions

View File

@@ -141,7 +141,9 @@ public class CostExile extends CostPartWithList {
return list.contains(source);
}
if (!type.contains("X")) {
list = CardLists.getValidCards(list, type.split(";"), payer, source, ability);
}
final Integer amount = this.convertAmount();
if ((amount != null) && (list.size() < amount)) {

View File

@@ -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<X\Exiled> 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