mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
fix manatype in pool count to include conditional mana
This commit is contained in:
parent
e1630b3c6f
commit
8183797c41
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue