forked from External/mage
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
|
|
@ -95,9 +95,9 @@ public class RemoveVariableCountersTargetCost extends VariableCostImpl {
|
|||
int maxValue = 0;
|
||||
for (Permanent permanent :game.getBattlefield().getAllActivePermanents(filter, source.getControllerId(), game)) {
|
||||
if (counterTypeToRemove != null) {
|
||||
maxValue += permanent.getCounters().getCount(counterTypeToRemove);
|
||||
maxValue += permanent.getCounters(game).getCount(counterTypeToRemove);
|
||||
} else {
|
||||
for(Counter counter :permanent.getCounters().values()){
|
||||
for(Counter counter :permanent.getCounters(game).values()){
|
||||
maxValue += counter.getCount();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue