mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
* Hallowed Moonlight - Fixed exception if a token should be moved to exile.
This commit is contained in:
parent
8bce5982c1
commit
c841ff8ead
1 changed files with 1 additions and 7 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue