mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
allow cards to be moved from the exile zone
This commit is contained in:
parent
2f3108c57c
commit
1e5d68183f
2 changed files with 9 additions and 0 deletions
|
@ -74,6 +74,12 @@ public class ReturnToHandTargetEffect extends OneShotEffect<ReturnToHandTargetEf
|
|||
result |= card.moveToZone(Zone.HAND, source.getId(), game, true);
|
||||
}
|
||||
break;
|
||||
case EXILED:
|
||||
card = game.getCard(id);
|
||||
if (card != null) {
|
||||
result |= card.moveToZone(Zone.HAND, source.getId(), game, true);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
|
|
@ -238,6 +238,9 @@ public abstract class CardImpl<T extends CardImpl<T>> extends MageObjectImpl<T>
|
|||
case LIBRARY:
|
||||
game.getPlayer(ownerId).removeFromLibrary(this, game);
|
||||
break;
|
||||
case EXILED:
|
||||
game.getExile().removeCard(this, game);
|
||||
break;
|
||||
default:
|
||||
//logger.warning("moveToZone, not fully implemented: from="+event.getFromZone() + ", to="+event.getToZone());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue