From c255cb5285008a05030aa51a96ce1030a47c3b4e Mon Sep 17 00:00:00 2001 From: Agetian Date: Tue, 20 Dec 2016 05:22:37 +0000 Subject: [PATCH] - 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. --- .../src/main/java/forge/game/spellability/SpellAbility.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/forge-game/src/main/java/forge/game/spellability/SpellAbility.java b/forge-game/src/main/java/forge/game/spellability/SpellAbility.java index 6a7ce2f004c..de432da5864 100644 --- a/forge-game/src/main/java/forge/game/spellability/SpellAbility.java +++ b/forge-game/src/main/java/forge/game/spellability/SpellAbility.java @@ -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; }