- Consolidated some calls related to card panel highlighting for the Sacrifice costs.

This commit is contained in:
Agetian
2012-12-01 16:33:34 +00:00
parent 293744e9a4
commit c1098616c3

View File

@@ -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;