Copy SA without mana cost will also copy castFaceDown flag. (Fix for Illusionary Mask)

This commit is contained in:
Lyu Zong-Hong
2021-04-04 10:43:55 +09:00
parent 660ed4c341
commit 9097fb6f60

View File

@@ -1081,6 +1081,15 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
newSA.mapParams.put("WithoutManaCost", "True"); newSA.mapParams.put("WithoutManaCost", "True");
} }
newSA.setDescription(newSA.getDescription() + " (without paying its mana cost)"); 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; return newSA;
} }