* Imposing Sovereign - Fixed that it wasn't applied to tokens coming into play.

This commit is contained in:
LevelX2 2013-08-03 12:44:25 +02:00
parent af501d2954
commit d2ab0b6bff

View file

@ -32,7 +32,6 @@ import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.ReplacementEffectImpl;
import mage.cards.Card;
import mage.cards.CardImpl;
import mage.constants.CardType;
import mage.constants.Duration;
@ -96,9 +95,10 @@ class ImposingSovereignEffect extends ReplacementEffectImpl<ImposingSovereignEff
@Override
public boolean applies(GameEvent event, Ability source, Game game) {
if (event.getType() == GameEvent.EventType.ENTERS_THE_BATTLEFIELD && game.getOpponents(source.getControllerId()).contains(event.getPlayerId())) {
Card c = game.getCard(event.getTargetId());
if (c != null && c.getCardType().contains(CardType.CREATURE))
Permanent permanent = game.getPermanent(event.getTargetId());
if (permanent != null && permanent.getCardType().contains(CardType.CREATURE)) {
return true;
}
}
return false;
}
@ -112,4 +112,4 @@ class ImposingSovereignEffect extends ReplacementEffectImpl<ImposingSovereignEff
public ImposingSovereignEffect copy() {
return new ImposingSovereignEffect(this);
}
}
}