Merge branch 'fix_illusionary_mask' into 'master'

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

See merge request core-developers/forge!4364
This commit is contained in:
Michael Kamensky
2021-04-04 04:26:17 +00:00

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;
} }