mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08: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.cards.CardImpl;
|
||||||
import mage.game.Game;
|
import mage.game.Game;
|
||||||
import mage.game.events.GameEvent;
|
import mage.game.events.GameEvent;
|
||||||
|
import mage.players.Player;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
@ -96,11 +97,14 @@ class SkipUntapStepEffect extends ReplacementEffectImpl {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean checksEventType(GameEvent event, Game game) {
|
||||||
|
return event.getType() == GameEvent.EventType.UNTAP_STEP;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean applies(GameEvent event, Ability source, Game game) {
|
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||||
if (event.getType() == GameEvent.EventType.UNTAP) {
|
Player controller = game.getPlayer(source.getControllerId());
|
||||||
return true;
|
return controller != null && controller.getInRange().contains(event.getPlayerId());
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue