mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
- Fixed Venerated Teacher. It helps to actually read the card carefully.
This commit is contained in:
parent
fb1cd270e5
commit
65d4e660d5
1 changed files with 10 additions and 7 deletions
|
@ -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<VeneratedTeacherEffect> {
|
|||
List<Permanent> 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;
|
||||
|
|
Loading…
Reference in a new issue