From 81039d6e72930a1f6e498e386d86136dd57fceac Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Sat, 23 Sep 2023 06:21:21 +0400 Subject: [PATCH] Naked Singularity - fixed game error on usage with multi subtypes land; --- Mage.Sets/src/mage/cards/n/NakedSingularity.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/cards/n/NakedSingularity.java b/Mage.Sets/src/mage/cards/n/NakedSingularity.java index 25a7e00a9d6..38508bde11d 100644 --- a/Mage.Sets/src/mage/cards/n/NakedSingularity.java +++ b/Mage.Sets/src/mage/cards/n/NakedSingularity.java @@ -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; }