This commit is contained in:
nickmyers 2015-02-18 20:55:38 -06:00
parent 43d1bf899c
commit 9528b991f2

View file

@ -9,11 +9,11 @@ import java.util.UUID;
import mage.constants.*;
import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.ReplacementEffectImpl;
import mage.cards.CardImpl;
import mage.game.Game;
import mage.game.events.GameEvent;
import mage.players.Player;
import mage.game.events.GameEvent.EventType;
import mage.abilities.effects.ContinuousRuleModifiyingEffectImpl;
/**
*
@ -40,7 +40,7 @@ public class EonHub extends CardImpl {
}
class SkipUpkeepStepEffect extends ReplacementEffectImpl {
class SkipUpkeepStepEffect extends ContinuousRuleModifiyingEffectImpl {
public SkipUpkeepStepEffect() {
super(Duration.WhileOnBattlefield, Outcome.Neutral);
@ -56,25 +56,8 @@ class SkipUpkeepStepEffect extends ReplacementEffectImpl {
return new SkipUpkeepStepEffect(this);
}
@Override
public boolean apply(Game game, Ability source) {
return true;
}
@Override
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
return true;
}
@Override
public boolean checksEventType(GameEvent event, Game game) {
return event.getType() == GameEvent.EventType.UPKEEP_STEP;
}
@Override
public boolean applies(GameEvent event, Ability source, Game game) {
Player controller = game.getPlayer(source.getControllerId());
return controller != null && controller.getInRange().contains(event.getPlayerId());
return event.getType() == EventType.UPKEEP_STEP;
}
}