GameAction: removeExiledWith when zone is not exile

This commit is contained in:
Hans Mackowiak
2021-02-26 02:40:52 +01:00
parent 21999488f4
commit 245586cefa
2 changed files with 5 additions and 0 deletions

View File

@@ -783,6 +783,10 @@ public class Game {
cc.removeEncodedCard(c);
cc.removeRemembered(c);
}
Card exile = c.getExiledWith();
if (exile != null) {
exile.removeExiledWith(c);
}
c.ceaseToExist();
} else {
// return stolen permanents

View File

@@ -419,6 +419,7 @@ public class GameAction {
Card with = c.getExiledWith();
if (with != null) {
with.removeUntilLeavesBattlefield(c);
with.removeExiledWith(c);
}
c.setExiledWith(null);