mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 02:08:00 +00:00
Cleanup CostRemoveCounter
This commit is contained in:
committed by
Hans Mackowiak
parent
c885b87f2e
commit
4db82a074b
@@ -176,13 +176,7 @@ public class CostRemoveCounter extends CostPart {
|
||||
Card source = ability.getHostCard();
|
||||
|
||||
int removed = 0;
|
||||
final int toRemove;
|
||||
if (getAmount().equals("All")) {
|
||||
toRemove = source.getCounters(counter);
|
||||
}
|
||||
else {
|
||||
toRemove = AbilityUtils.calculateAmount(source, getAmount(), ability);
|
||||
}
|
||||
final int toRemove = decision.c;
|
||||
|
||||
// for this cost, the list should be only one
|
||||
for (Card c : decision.cards) {
|
||||
|
||||
@@ -1042,7 +1042,7 @@ public class HumanCostDecision extends CostDecisionMakerBase {
|
||||
int cntRemoved = 1;
|
||||
if (c != null) {
|
||||
cntRemoved = c.intValue();
|
||||
} else if (!"XChoice".equals(sVarAmount)) {
|
||||
} else if (!"XChoice".equals(sVarAmount) && !amount.equals("All")) {
|
||||
cntRemoved = AbilityUtils.calculateAmount(source, amount, ability);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user