mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +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();
|
Card source = ability.getHostCard();
|
||||||
|
|
||||||
int removed = 0;
|
int removed = 0;
|
||||||
final int toRemove;
|
final int toRemove = decision.c;
|
||||||
if (getAmount().equals("All")) {
|
|
||||||
toRemove = source.getCounters(counter);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
toRemove = AbilityUtils.calculateAmount(source, getAmount(), ability);
|
|
||||||
}
|
|
||||||
|
|
||||||
// for this cost, the list should be only one
|
// for this cost, the list should be only one
|
||||||
for (Card c : decision.cards) {
|
for (Card c : decision.cards) {
|
||||||
|
|||||||
@@ -1042,7 +1042,7 @@ public class HumanCostDecision extends CostDecisionMakerBase {
|
|||||||
int cntRemoved = 1;
|
int cntRemoved = 1;
|
||||||
if (c != null) {
|
if (c != null) {
|
||||||
cntRemoved = c.intValue();
|
cntRemoved = c.intValue();
|
||||||
} else if (!"XChoice".equals(sVarAmount)) {
|
} else if (!"XChoice".equals(sVarAmount) && !amount.equals("All")) {
|
||||||
cntRemoved = AbilityUtils.calculateAmount(source, amount, ability);
|
cntRemoved = AbilityUtils.calculateAmount(source, amount, ability);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user