* Hallowed Moonlight - Fixed exception if a token should be moved to exile.

This commit is contained in:
LevelX2 2015-07-07 22:12:33 +02:00
parent 8bce5982c1
commit c841ff8ead

View file

@ -87,19 +87,13 @@ class HallowedMoonlightEffect extends ReplacementEffectImpl {
return new HallowedMoonlightEffect(this);
}
@Override
public boolean apply(Game game, Ability source) {
return true;
}
@Override
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
Player controller = game.getPlayer(source.getControllerId());
ZoneChangeEvent zEvent = (ZoneChangeEvent) event;
if (controller != null) {
Card card = game.getCard(event.getTargetId());
if (card != null) {
controller.moveCardToExileWithInfo(card, null, "", source.getSourceId(), game, zEvent.getFromZone(), true);
controller.moveCardToExileWithInfo(card, null, "", source.getSourceId(), game, Zone.BATTLEFIELD, true);
}
return true;