- 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
This commit is contained in:
Agetian 2017-09-24 14:57:28 +00:00
parent 3b66b5255a
commit f3013b3f9b

View File

@ -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;
}
}