mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Merge pull request #5487 from ninthworld/Omnath
Fix ManaTypeInManaPoolCount to include conditional mana (Fixes #5458)
This commit is contained in:
commit
423115ced5
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