Code cleanup

This commit is contained in:
drdev
2014-09-14 18:25:58 +00:00
parent 7464f31f9b
commit e63276135f
2 changed files with 5 additions and 3 deletions

View File

@@ -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) {

View File

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