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.removeEncodedCard(c);
|
||||||
cc.removeRemembered(c);
|
cc.removeRemembered(c);
|
||||||
}
|
}
|
||||||
|
Card exile = c.getExiledWith();
|
||||||
|
if (exile != null) {
|
||||||
|
exile.removeExiledWith(c);
|
||||||
|
}
|
||||||
c.ceaseToExist();
|
c.ceaseToExist();
|
||||||
} else {
|
} else {
|
||||||
// return stolen permanents
|
// return stolen permanents
|
||||||
|
|||||||
@@ -419,6 +419,7 @@ public class GameAction {
|
|||||||
Card with = c.getExiledWith();
|
Card with = c.getExiledWith();
|
||||||
if (with != null) {
|
if (with != null) {
|
||||||
with.removeUntilLeavesBattlefield(c);
|
with.removeUntilLeavesBattlefield(c);
|
||||||
|
with.removeExiledWith(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
c.setExiledWith(null);
|
c.setExiledWith(null);
|
||||||
|
|||||||
Reference in New Issue
Block a user