fix costs for planeswalker

This commit is contained in:
Maxmtg
2013-04-07 23:53:06 +00:00
parent ae06422531
commit d86480e3f2

View File

@@ -165,6 +165,7 @@ public class CostRemoveCounter extends CostPartWithList {
int oldVal = crd.getCounters().get(getCounter()).intValue();
crd.getCounters().put(getCounter(), Integer.valueOf(oldVal - cntRemoved + 1));
}
cntRemoved = 1;
return executePayment(ability, inp.getSelected());
}
@@ -338,7 +339,7 @@ public class CostRemoveCounter extends CostPartWithList {
@Override
protected void doPayment(SpellAbility ability, Card targetCard){
targetCard.subtractCounter(this.getCounter(), 1);
targetCard.subtractCounter(this.getCounter(), cntRemoved);
}
/* (non-Javadoc)