mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Code cleanup
This commit is contained in:
@@ -141,7 +141,7 @@ public class CostPayment {
|
||||
}
|
||||
this.paidCostParts.add(part);
|
||||
}
|
||||
|
||||
|
||||
// this clears lists used for undo.
|
||||
for (final CostPart part1 : this.paidCostParts) {
|
||||
if (part1 instanceof CostPartWithList) {
|
||||
|
||||
@@ -126,7 +126,8 @@ public class ManaCostBeingPaid {
|
||||
for (ManaCostShard shard : manaCost) {
|
||||
if (shard == ManaCostShard.X) {
|
||||
cntX++;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
unpaidShards.add(shard);
|
||||
}
|
||||
}
|
||||
@@ -322,8 +323,9 @@ public class ManaCostBeingPaid {
|
||||
priority = toPayPriority;
|
||||
choice.clear();
|
||||
}
|
||||
if ( toPayPriority == priority )
|
||||
if (toPayPriority == priority) {
|
||||
choice.add(toPay);
|
||||
}
|
||||
} // for
|
||||
if (choice.isEmpty()) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user