mirror of
https://github.com/correl/mage.git
synced 2025-01-13 11:01:58 +00:00
* Imposing Sovereign - Fixed that it wasn't applied to tokens coming into play.
This commit is contained in:
parent
af501d2954
commit
d2ab0b6bff
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue