Merge pull request #2848 from spjspj/master

Allow lands with AnyColorManaAbility to be have automatic payments done
This commit is contained in:
spjspj 2017-02-09 18:26:14 +11:00 committed by GitHub
commit 0ff7ff686d

View file

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