From 291a28d1db231017f8124cfb5b30cfd3215b0270 Mon Sep 17 00:00:00 2001 From: Grath <1895280+Grath@users.noreply.github.com> Date: Sat, 21 Sep 2024 00:40:15 -0400 Subject: [PATCH] If Emerge reduces mana cost to zero, pass noMana flag to allow spell to be cast with empty manaCostsToPay. (#12896) Fixes #12841 --- Mage/src/main/java/mage/abilities/keyword/EmergeAbility.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mage/src/main/java/mage/abilities/keyword/EmergeAbility.java b/Mage/src/main/java/mage/abilities/keyword/EmergeAbility.java index c1678cd031c9..1649aca17b97 100644 --- a/Mage/src/main/java/mage/abilities/keyword/EmergeAbility.java +++ b/Mage/src/main/java/mage/abilities/keyword/EmergeAbility.java @@ -112,7 +112,8 @@ public boolean activate(Game game, Set allowedIdentifiers, boole Permanent creature = game.getPermanent(target.getFirstTarget()); if (creature != null) { CardUtil.reduceCost(this, creature.getManaValue()); - if (super.activate(game, allowedIdentifiers, false)) { + boolean reducedToZero = this.getManaCostsToPay().isEmpty(); + if (super.activate(game, allowedIdentifiers, reducedToZero)) { MageObjectReference mor = new MageObjectReference(creature, game); if (creature.sacrifice(this, game)) { this.setCostsTag(EMERGE_ACTIVATION_CREATURE_REFERENCE, mor); //Can access with LKI afterwards