mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- RemAIDeck update: next iteration.
This commit is contained in:
@@ -842,6 +842,9 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
|
||||
|
||||
public SpellAbility copyWithNoManaCost() {
|
||||
final SpellAbility newSA = copy();
|
||||
if (newSA == null) {
|
||||
return null; // the ability was not copyable, e.g. a Suspend SA may get here
|
||||
}
|
||||
newSA.setPayCosts(newSA.getPayCosts().copyWithNoMana());
|
||||
if (!newSA.hasParam("WithoutManaCost")) {
|
||||
newSA.mapParams.put("WithoutManaCost", "True");
|
||||
|
||||
Reference in New Issue
Block a user