mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- Fixed copying a SA with no mana cost not setting the WithoutManaCost param which is needed by e.g. Play effect AI to properly determine that the spell should be played without paying its mana cost.
This commit is contained in:
@@ -781,6 +781,9 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
|
||||
public SpellAbility copyWithNoManaCost() {
|
||||
final SpellAbility newSA = copy();
|
||||
newSA.setPayCosts(newSA.getPayCosts().copyWithNoMana());
|
||||
if (!newSA.hasParam("WithoutManaCost")) {
|
||||
newSA.mapParams.put("WithoutManaCost", "True");
|
||||
}
|
||||
newSA.setDescription(newSA.getDescription() + " (without paying its mana cost)");
|
||||
return newSA;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user