mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
* Nissa's Chosen - move permanent instead of card internally to library.
This commit is contained in:
parent
e2532a9b11
commit
fac4ff40fe
1 changed files with 4 additions and 3 deletions
|
@ -43,6 +43,7 @@ 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;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -96,9 +97,9 @@ class NissasChosenEffect extends ReplacementEffectImpl<NissasChosenEffect> {
|
|||
|
||||
@Override
|
||||
public boolean replaceEvent(GameEvent event, Ability source, Game game) {
|
||||
Card card = game.getCard(event.getTargetId());
|
||||
if ( card != null ) {
|
||||
return card.moveToZone(Zone.LIBRARY, source.getId(), game, false);
|
||||
Permanent permanent = ((ZoneChangeEvent) event).getTarget();
|
||||
if (permanent != null) {
|
||||
return permanent.moveToZone(Zone.LIBRARY, source.getSourceId(), game, false);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue