From 65d4e660d56376a93a2fe84bd11b00d7fff8c978 Mon Sep 17 00:00:00 2001 From: jeffwadsworth Date: Wed, 18 Apr 2012 18:04:04 -0500 Subject: [PATCH] - Fixed Venerated Teacher. It helps to actually read the card carefully. --- .../sets/riseoftheeldrazi/VeneratedTeacher.java | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Mage.Sets/src/mage/sets/riseoftheeldrazi/VeneratedTeacher.java b/Mage.Sets/src/mage/sets/riseoftheeldrazi/VeneratedTeacher.java index bb4ea3dd22..97d81cb38b 100644 --- a/Mage.Sets/src/mage/sets/riseoftheeldrazi/VeneratedTeacher.java +++ b/Mage.Sets/src/mage/sets/riseoftheeldrazi/VeneratedTeacher.java @@ -29,18 +29,19 @@ package mage.sets.riseoftheeldrazi; import java.util.List; import java.util.UUID; -import mage.Constants.CardType; -import mage.Constants.Rarity; import mage.MageInt; -import mage.cards.CardImpl; import mage.abilities.common.EntersBattlefieldTriggeredAbility; import mage.abilities.effects.OneShotEffect; -import mage.game.permanent.Permanent; -import mage.game.Game; import mage.filter.common.FilterControlledCreaturePermanent; import mage.Constants.Outcome; import mage.counters.CounterType; +import mage.Constants.CardType; +import mage.Constants.Rarity; import mage.abilities.Ability; +import mage.cards.CardImpl; +import mage.game.Game; +import mage.game.permanent.Permanent; +import mage.abilities.keyword.LevelUpAbility; /** * @@ -90,8 +91,10 @@ class VeneratedTeacherEffect extends OneShotEffect { List permanents = game.getBattlefield().getAllActivePermanents(filter, source.getControllerId()); if (!permanents.isEmpty()) { for (Permanent permanent : permanents) { - if (permanent.getCounters().getCount(CounterType.LEVEL) > 0) { - permanent.addCounters(CounterType.LEVEL.createInstance(2), game); + for (Ability ability : permanent.getAbilities()) { + if (ability instanceof LevelUpAbility) { + permanent.addCounters(CounterType.LEVEL.createInstance(2), game); + } } } return true;