mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
fix costs for planeswalker
This commit is contained in:
@@ -165,6 +165,7 @@ public class CostRemoveCounter extends CostPartWithList {
|
|||||||
int oldVal = crd.getCounters().get(getCounter()).intValue();
|
int oldVal = crd.getCounters().get(getCounter()).intValue();
|
||||||
crd.getCounters().put(getCounter(), Integer.valueOf(oldVal - cntRemoved + 1));
|
crd.getCounters().put(getCounter(), Integer.valueOf(oldVal - cntRemoved + 1));
|
||||||
}
|
}
|
||||||
|
cntRemoved = 1;
|
||||||
return executePayment(ability, inp.getSelected());
|
return executePayment(ability, inp.getSelected());
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -338,7 +339,7 @@ public class CostRemoveCounter extends CostPartWithList {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void doPayment(SpellAbility ability, Card targetCard){
|
protected void doPayment(SpellAbility ability, Card targetCard){
|
||||||
targetCard.subtractCounter(this.getCounter(), 1);
|
targetCard.subtractCounter(this.getCounter(), cntRemoved);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
|||||||
Reference in New Issue
Block a user