fix manatype in pool count to include conditional mana

This commit is contained in:
ninthworld 2019-01-02 23:29:11 -08:00
parent e1630b3c6f
commit 8183797c41

View file

@ -1,5 +1,6 @@
package mage.abilities.dynamicvalue.common;
import mage.ConditionalMana;
import mage.abilities.Ability;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.effects.Effect;
@ -29,6 +30,9 @@ public class ManaTypeInManaPoolCount implements DynamicValue {
Player player = game.getPlayer(sourceAbility.getControllerId());
if (player != null) {
amount = player.getManaPool().get(manaType);
for (ConditionalMana mana : player.getManaPool().getConditionalMana()) {
amount += mana.get(manaType);
}
}
return amount;
}