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
|
|
@ -55,7 +55,7 @@ public class ApplyCountersEffect extends ContinuousEffectImpl {
|
|||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
for (Permanent permanent: game.getBattlefield().getAllActivePermanents(CardType.CREATURE)) {
|
||||
for (BoostCounter counter: permanent.getCounters().getBoostCounters()) {
|
||||
for (BoostCounter counter: permanent.getCounters(game).getBoostCounters()) {
|
||||
permanent.addPower(counter.getPower() * counter.getCount());
|
||||
permanent.addToughness(counter.getToughness() * counter.getCount());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue