mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 12:02:01 -08:00
Naked Singularity - fixed game error on usage with multi subtypes land;
This commit is contained in:
parent
2ceb2727e5
commit
81039d6e72
1 changed files with 13 additions and 2 deletions
|
|
@ -95,12 +95,20 @@ class NakedSingularityEffect extends ReplacementEffectImpl {
|
|||
if (permanent.hasSubtype(SubType.FOREST, game)) {
|
||||
choice.getChoices().add("Black");
|
||||
}
|
||||
|
||||
String chosenColor;
|
||||
if (choice.getChoices().size() == 1) {
|
||||
chosenColor = choice.getChoices().iterator().next();
|
||||
} else if (choice.getChoices().size() == 0) {
|
||||
chosenColor = null;
|
||||
} else {
|
||||
controller.choose(Outcome.PutManaInPool, choice, game);
|
||||
chosenColor = choice.getChoice();
|
||||
// workaround to skip choose dialog in check playable state
|
||||
if (game.inCheckPlayableState()) {
|
||||
chosenColor = "Any";
|
||||
} else {
|
||||
controller.choose(Outcome.PutManaInPool, choice, game);
|
||||
chosenColor = choice.getChoice();
|
||||
}
|
||||
}
|
||||
if (chosenColor == null) {
|
||||
return false;
|
||||
|
|
@ -123,6 +131,9 @@ class NakedSingularityEffect extends ReplacementEffectImpl {
|
|||
case "Green":
|
||||
mana.setToMana(Mana.GreenMana(amount));
|
||||
break;
|
||||
case "Any":
|
||||
mana.setToMana(Mana.AnyMana(amount));
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue