From c1098616c315dd9e6f4cfa7a616d4b42cb1b5426 Mon Sep 17 00:00:00 2001 From: Agetian Date: Sat, 1 Dec 2012 16:33:34 +0000 Subject: [PATCH] - Consolidated some calls related to card panel highlighting for the Sacrifice costs. --- src/main/java/forge/GameActionUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/forge/GameActionUtil.java b/src/main/java/forge/GameActionUtil.java index 09dc8631b94..ba69a370034 100644 --- a/src/main/java/forge/GameActionUtil.java +++ b/src/main/java/forge/GameActionUtil.java @@ -505,12 +505,9 @@ public final class GameActionUtil { if (!showYesNoDialog(source, "Do you want to pay the sacrifice cost?")) { hasPaid = false; - GuiUtils.clearPanelSelections(); break; } - GuiUtils.clearPanelSelections(); - for (int i = 0; i < amount; i++) { if (list.isEmpty()) { hasPaid = false; @@ -529,6 +526,9 @@ public final class GameActionUtil { remainingParts.remove(part); } } + + GuiUtils.clearPanelSelections(); + if (!hasPaid) { unpaid.execute(); return;