mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user