fixed bug where no counters is removed, if number of counters to remove is more then counters in permanent

master
melvin 2012-10-04 22:16:30 +08:00
parent 12f01004a7
commit b000bf5cab
1 changed files with 1 additions and 1 deletions

View File

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