mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Merge pull request #2848 from spjspj/master
Allow lands with AnyColorManaAbility to be have automatic payments done
This commit is contained in:
commit
0ff7ff686d
1 changed files with 4 additions and 1 deletions
|
@ -17,6 +17,7 @@ import mage.abilities.mana.BlackManaAbility;
|
||||||
import mage.abilities.mana.BlueManaAbility;
|
import mage.abilities.mana.BlueManaAbility;
|
||||||
import mage.abilities.mana.GreenManaAbility;
|
import mage.abilities.mana.GreenManaAbility;
|
||||||
import mage.abilities.mana.ActivatedManaAbilityImpl;
|
import mage.abilities.mana.ActivatedManaAbilityImpl;
|
||||||
|
import mage.abilities.mana.AnyColorManaAbility;
|
||||||
import mage.abilities.mana.RedManaAbility;
|
import mage.abilities.mana.RedManaAbility;
|
||||||
import mage.abilities.mana.WhiteManaAbility;
|
import mage.abilities.mana.WhiteManaAbility;
|
||||||
import mage.cards.Card;
|
import mage.cards.Card;
|
||||||
|
@ -62,7 +63,9 @@ public class ManaUtil {
|
||||||
for (ActivatedManaAbilityImpl ability : useableAbilities.values()) {
|
for (ActivatedManaAbilityImpl ability : useableAbilities.values()) {
|
||||||
if (!(ability instanceof BasicManaAbility)) {
|
if (!(ability instanceof BasicManaAbility)) {
|
||||||
// return map as-is without any modification
|
// return map as-is without any modification
|
||||||
return useableAbilities;
|
if (!(ability instanceof AnyColorManaAbility)) {
|
||||||
|
return useableAbilities;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue