mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Updated based on recommendations from LevelX2
This commit is contained in:
parent
9528b991f2
commit
0dcb496b2e
1 changed files with 4 additions and 2 deletions
|
@ -14,6 +14,7 @@ import mage.game.Game;
|
|||
import mage.game.events.GameEvent;
|
||||
import mage.game.events.GameEvent.EventType;
|
||||
import mage.abilities.effects.ContinuousRuleModifiyingEffectImpl;
|
||||
import mage.players.Player;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -43,7 +44,7 @@ public class EonHub extends CardImpl {
|
|||
class SkipUpkeepStepEffect extends ContinuousRuleModifiyingEffectImpl {
|
||||
|
||||
public SkipUpkeepStepEffect() {
|
||||
super(Duration.WhileOnBattlefield, Outcome.Neutral);
|
||||
super(Duration.WhileOnBattlefield, Outcome.Neutral, false, false);
|
||||
staticText = "Players skip their upkeep steps";
|
||||
}
|
||||
|
||||
|
@ -58,6 +59,7 @@ class SkipUpkeepStepEffect extends ContinuousRuleModifiyingEffectImpl {
|
|||
|
||||
@Override
|
||||
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||
return event.getType() == EventType.UPKEEP_STEP;
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
return event.getType() == EventType.UPKEEP_STEP && controller != null && controller.getInRange().contains(event.getPlayerId());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue