mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Stasis - Fixed that all untap actions were replaced instead of only the untap step of players (fixes #691).
This commit is contained in:
parent
5701c36446
commit
2ee9728cb3
1 changed files with 8 additions and 4 deletions
|
@ -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());
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue