mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
- Fixed #5661
This commit is contained in:
parent
7c8ba650a2
commit
b10b973d09
1 changed files with 3 additions and 3 deletions
|
@ -86,15 +86,14 @@ class MesmericFiendExileEffect extends OneShotEffect {
|
|||
Card card = opponent.getHand().get(target.getFirstTarget(), game);
|
||||
if (card != null) {
|
||||
UUID exileId = CardUtil.getExileZoneId(game, source.getSourceId(), source.getSourceObjectZoneChangeCounter());
|
||||
game.getState().setValue(source.getSourceId().toString() + source.getSourceObjectZoneChangeCounter(), exileId);
|
||||
controller.moveCardsToExile(card, source, game, true, exileId, sourcePermanent.getName());
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class MesmericFiendLeaveEffect extends OneShotEffect {
|
||||
|
@ -119,7 +118,8 @@ class MesmericFiendLeaveEffect extends OneShotEffect {
|
|||
MageObject sourceObject = source.getSourceObject(game);
|
||||
if (controller != null
|
||||
&& sourceObject != null) {
|
||||
UUID exileId = CardUtil.getExileZoneId(game, source.getSourceId(), source.getSourceObjectZoneChangeCounter() - 1);
|
||||
int zoneChangeMinusOne = source.getSourceObjectZoneChangeCounter() - 1;
|
||||
UUID exileId = (UUID) game.getState().getValue(source.getSourceId().toString() + zoneChangeMinusOne);
|
||||
if (exileId != null) {
|
||||
Cards cards = game.getExile().getExileZone(exileId);
|
||||
if (!cards.isEmpty()) {
|
||||
|
|
Loading…
Reference in a new issue