From 9097fb6f602df1a6ad7f389e64d0cad96a6b9744 Mon Sep 17 00:00:00 2001 From: Lyu Zong-Hong Date: Sun, 4 Apr 2021 10:43:55 +0900 Subject: [PATCH] Copy SA without mana cost will also copy castFaceDown flag. (Fix for Illusionary Mask) --- .../main/java/forge/game/spellability/SpellAbility.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/forge-game/src/main/java/forge/game/spellability/SpellAbility.java b/forge-game/src/main/java/forge/game/spellability/SpellAbility.java index 77fb7b2dc83..08132c6724d 100644 --- a/forge-game/src/main/java/forge/game/spellability/SpellAbility.java +++ b/forge-game/src/main/java/forge/game/spellability/SpellAbility.java @@ -1081,6 +1081,15 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit newSA.mapParams.put("WithoutManaCost", "True"); } newSA.setDescription(newSA.getDescription() + " (without paying its mana cost)"); + + //Normal copied spell will not copy castFaceDown flag + //But copyWithNoManaCost is used to get SA without mana cost + //So it need to copy the castFaceDown flag too + if (newSA instanceof Spell) { + Spell spell = (Spell) newSA; + spell.setCastFaceDown(this.isCastFaceDown()); + } + return newSA; }