mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
Make the Counters API for card and permanent consistent.
This commit is contained in:
parent
277dc19fec
commit
148f633672
176 changed files with 272 additions and 277 deletions
|
|
@ -67,19 +67,19 @@ public class PermanentHasCounterCondition implements Condition {
|
|||
for (Permanent permanent : permanents) {
|
||||
switch (this.type) {
|
||||
case FEWER_THAN:
|
||||
if (permanent.getCounters().getCount(this.counterType) < this.amount) {
|
||||
if (permanent.getCounters(game).getCount(this.counterType) < this.amount) {
|
||||
conditionApplies = true;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case MORE_THAN:
|
||||
if (permanent.getCounters().getCount(this.counterType) > this.amount) {
|
||||
if (permanent.getCounters(game).getCount(this.counterType) > this.amount) {
|
||||
conditionApplies = true;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case EQUAL_TO:
|
||||
if (permanent.getCounters().getCount(this.counterType) == this.amount) {
|
||||
if (permanent.getCounters(game).getCount(this.counterType) == this.amount) {
|
||||
conditionApplies = true;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue