moved Watchers to Ability and moved Counters to CardState

This commit is contained in:
betasteward 2015-03-01 21:17:23 -05:00
parent 620a3b9a52
commit 632573fc3e
204 changed files with 1516 additions and 347 deletions

View file

@ -74,7 +74,7 @@ public class SourceHasCounterCondition implements Condition {
if (from != -1) { //range compare
int count;
if (card != null) {
count = card.getCounters().getCount(counterType);
count = card.getCounters(game).getCount(counterType);
} else {
count = permanent.getCounters().getCount(counterType);
}
@ -84,7 +84,7 @@ public class SourceHasCounterCondition implements Condition {
return count >= from && count <= to;
} else { // single compare (lte)
if (card != null) {
return card.getCounters().getCount(counterType) >= amount;
return card.getCounters(game).getCount(counterType) >= amount;
} else {
return permanent.getCounters().getCount(counterType) >= amount;
}