fixed bug where no counters is removed, if number of counters to remove is more then counters in permanent
parent
12f01004a7
commit
b000bf5cab
|
@ -21,7 +21,7 @@ public class MagicChangeCountersAction extends MagicAction {
|
|||
|
||||
// number of counters cannot become negative
|
||||
this.amount = (permanent.getCounters(counterType) + amount >= 0) ?
|
||||
amount : 0;
|
||||
amount : -permanent.getCounters(counterType);
|
||||
|
||||
this.hasScore=hasScore;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue