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?")) {
|
if (!showYesNoDialog(source, "Do you want to pay the sacrifice cost?")) {
|
||||||
hasPaid = false;
|
hasPaid = false;
|
||||||
GuiUtils.clearPanelSelections();
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
GuiUtils.clearPanelSelections();
|
|
||||||
|
|
||||||
for (int i = 0; i < amount; i++) {
|
for (int i = 0; i < amount; i++) {
|
||||||
if (list.isEmpty()) {
|
if (list.isEmpty()) {
|
||||||
hasPaid = false;
|
hasPaid = false;
|
||||||
@@ -529,6 +526,9 @@ public final class GameActionUtil {
|
|||||||
remainingParts.remove(part);
|
remainingParts.remove(part);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GuiUtils.clearPanelSelections();
|
||||||
|
|
||||||
if (!hasPaid) {
|
if (!hasPaid) {
|
||||||
unpaid.execute();
|
unpaid.execute();
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user