mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Nissa's Chosen will now actually go to the bottom instead of the graveyard.
This commit is contained in:
parent
c8c59933eb
commit
e142c6c211
1 changed files with 4 additions and 4 deletions
|
@ -37,12 +37,12 @@ import mage.MageInt;
|
|||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.ReplacementEffectImpl;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.events.GameEvent.EventType;
|
||||
import mage.game.events.ZoneChangeEvent;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -98,9 +98,9 @@ class NissasChosenEffect extends ReplacementEffectImpl<NissasChosenEffect> {
|
|||
|
||||
@Override
|
||||
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
|
||||
Permanent permanent = game.getPermanent(event.getTargetId());
|
||||
if ( permanent != null && event.getTargetId().equals(source.getSourceId()) ) {
|
||||
return permanent.moveToZone(Zone.LIBRARY, source.getId(), game, onTop);
|
||||
Card card = game.getCard(event.getTargetId());
|
||||
if ( card != null && event.getTargetId().equals(source.getSourceId()) ) {
|
||||
return card.moveToZone(Zone.LIBRARY, source.getId(), game, onTop);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue