mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 09:48:02 +00:00
GameAction: removeExiledWith when zone is not exile
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -419,6 +419,7 @@ public class GameAction {
|
||||
Card with = c.getExiledWith();
|
||||
if (with != null) {
|
||||
with.removeUntilLeavesBattlefield(c);
|
||||
with.removeExiledWith(c);
|
||||
}
|
||||
|
||||
c.setExiledWith(null);
|
||||
|
||||
Reference in New Issue
Block a user