* Stasis - Fixed that all untap actions were replaced instead of only the untap step of players (fixes #691).

This commit is contained in:
LevelX2 2015-01-27 15:09:33 +01:00
parent 5701c36446
commit 2ee9728cb3

View file

@ -39,6 +39,7 @@ import mage.abilities.effects.common.SacrificeSourceUnlessPaysEffect;
import mage.cards.CardImpl;
import mage.game.Game;
import mage.game.events.GameEvent;
import mage.players.Player;
/**
*
@ -96,11 +97,14 @@ class SkipUntapStepEffect extends ReplacementEffectImpl {
return true;
}
@Override
public boolean checksEventType(GameEvent event, Game game) {
return event.getType() == GameEvent.EventType.UNTAP_STEP;
}
@Override
public boolean applies(GameEvent event, Ability source, Game game) {
if (event.getType() == GameEvent.EventType.UNTAP) {
return true;
}
return false;
Player controller = game.getPlayer(source.getControllerId());
return controller != null && controller.getInRange().contains(event.getPlayerId());
}
}