From 0dcb496b2ef60277a9c2643bc722769b8a010cf0 Mon Sep 17 00:00:00 2001 From: myersn024 Date: Thu, 19 Feb 2015 08:31:03 -0600 Subject: [PATCH] Updated based on recommendations from LevelX2 --- Mage.Sets/src/mage/sets/fifthdawn/EonHub.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/sets/fifthdawn/EonHub.java b/Mage.Sets/src/mage/sets/fifthdawn/EonHub.java index f9a79e83b4..18bf50f662 100644 --- a/Mage.Sets/src/mage/sets/fifthdawn/EonHub.java +++ b/Mage.Sets/src/mage/sets/fifthdawn/EonHub.java @@ -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()); } }