Cleanup CostRemoveCounter

This commit is contained in:
Bug Hunter
2021-01-28 07:20:34 +00:00
committed by Hans Mackowiak
parent c885b87f2e
commit 4db82a074b
2 changed files with 2 additions and 8 deletions

View File

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