From f3013b3f9b28ba8bc7ca91ffe90eee93ebf30b87 Mon Sep 17 00:00:00 2001 From: Agetian Date: Sun, 24 Sep 2017 14:57:28 +0000 Subject: [PATCH] - ReplaceProduceMana: check the root ability for tap cost (in case the mana ability is a subability), fixes interaction of mana replacement effects (e.g. Mana Reflection) with cards that tap in the root ability (e.g. Nykthos, Shrine to Nyx). git-svn-id: http://svn.slightlymagic.net/forge/trunk@35743 269b9781-a132-4a9b-9d4e-f004f1b56b58 --- .../main/java/forge/game/replacement/ReplaceProduceMana.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forge-game/src/main/java/forge/game/replacement/ReplaceProduceMana.java b/forge-game/src/main/java/forge/game/replacement/ReplaceProduceMana.java index 85e64038..8477d7ee 100644 --- a/forge-game/src/main/java/forge/game/replacement/ReplaceProduceMana.java +++ b/forge-game/src/main/java/forge/game/replacement/ReplaceProduceMana.java @@ -32,7 +32,7 @@ public class ReplaceProduceMana extends ReplacementEffect { //Check for tapping if (!mapParams.containsKey("NoTapCheck")) { final SpellAbility manaAbility = (SpellAbility) runParams.get("AbilityMana"); - if (manaAbility == null || manaAbility.getPayCosts() == null || !manaAbility.getPayCosts().hasTapCost()) { + if (manaAbility == null || manaAbility.getRootAbility().getPayCosts() == null || !manaAbility.getRootAbility().getPayCosts().hasTapCost()) { return false; } }