mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
- Consolidated some calls related to card panel highlighting for the Sacrifice costs.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user