mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Copy SA without mana cost will also copy castFaceDown flag. (Fix for Illusionary Mask)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user