mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
- Fixed tokens leaving the battlefield not unpairing.
This commit is contained in:
@@ -269,13 +269,16 @@ public class GameAction {
|
|||||||
copied.getCharacteristics().resetCardColor();
|
copied.getCharacteristics().resetCardColor();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fromBattlefield && !c.isToken()) {
|
if (fromBattlefield) {
|
||||||
copied.setSuspendCast(false);
|
if (!c.isToken()) {
|
||||||
copied.setState(CardCharacteristicName.Original);
|
copied.setSuspendCast(false);
|
||||||
|
copied.setState(CardCharacteristicName.Original);
|
||||||
|
}
|
||||||
// Soulbond unpairing
|
// Soulbond unpairing
|
||||||
if (c.isPaired()) {
|
if (c.isPaired()) {
|
||||||
c.getPairedWith().setPairedWith(null);
|
c.getPairedWith().setPairedWith(null);
|
||||||
c.setPairedWith(null);
|
if (!c.isToken())
|
||||||
|
c.setPairedWith(null);
|
||||||
}
|
}
|
||||||
unattachCardLeavingBattlefield(copied);
|
unattachCardLeavingBattlefield(copied);
|
||||||
} else if (zoneFrom.is(ZoneType.Exile) && !toBattlefield) {
|
} else if (zoneFrom.is(ZoneType.Exile) && !toBattlefield) {
|
||||||
|
|||||||
Reference in New Issue
Block a user