From 5558273fbba1cbc74023e60c3849d07a4954ee9a Mon Sep 17 00:00:00 2001 From: drdev Date: Sun, 14 Sep 2014 15:22:02 +0000 Subject: [PATCH] Prompt for X if sVar is empty --- forge-gui/src/main/java/forge/player/HumanPlaySpellAbility.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forge-gui/src/main/java/forge/player/HumanPlaySpellAbility.java b/forge-gui/src/main/java/forge/player/HumanPlaySpellAbility.java index 9228e0ece46..ae1f794eba5 100644 --- a/forge-gui/src/main/java/forge/player/HumanPlaySpellAbility.java +++ b/forge-gui/src/main/java/forge/player/HumanPlaySpellAbility.java @@ -229,7 +229,7 @@ public class HumanPlaySpellAbility { if (needX && manaCost != null && manaCost.getAmountOfX() > 0) { String sVar = ability.getSVar("X"); //only prompt for new X value if card doesn't determine it another way - if ("Count$xPaid".equals(sVar) || StringUtils.isNumeric(sVar)) { + if ("Count$xPaid".equals(sVar) || StringUtils.isNumeric(sVar) || sVar.isEmpty()) { Integer value = controller.announceRequirements(ability, "X", allowZero && manaCost.canXbe0()); if (value == null) { return false;