mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
This commit is contained in:
parent
43d1bf899c
commit
9528b991f2
1 changed files with 4 additions and 21 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue