mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
[ICE] Implement Snowfall (#11467)
* [ICE] Implement Snowfall * Change filter text, declare Island subtype in constructor * Make choice optional * Inherit outcome from superclass; add check in HumanPlayer.java to prevent auto-selecting non-ChoiceColor choices
This commit is contained in:
parent
2abe61643c
commit
1132cc27ba
3 changed files with 173 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ import mage.abilities.mana.ManaAbility;
|
|||
import mage.cards.*;
|
||||
import mage.cards.decks.Deck;
|
||||
import mage.choices.Choice;
|
||||
import mage.choices.ChoiceColor;
|
||||
import mage.choices.ChoiceImpl;
|
||||
import mage.constants.*;
|
||||
import mage.filter.StaticFilters;
|
||||
|
|
@ -582,7 +583,7 @@ public class HumanPlayer extends PlayerImpl {
|
|||
}
|
||||
|
||||
// Try to autopay for mana
|
||||
if (Outcome.PutManaInPool == outcome && currentlyUnpaidMana != null) {
|
||||
if (Outcome.PutManaInPool == outcome && choice instanceof ChoiceColor && currentlyUnpaidMana != null) {
|
||||
// Check check if the spell being paid for cares about the color of mana being paid
|
||||
// See: https://github.com/magefree/mage/issues/9070
|
||||
boolean caresAboutManaColor = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue