mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Only store the changezone LKI info for cards actually moving from zone to zone.
This commit is contained in:
@@ -105,8 +105,6 @@ public class GameAction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Card changeZone(final Zone zoneFrom, Zone zoneTo, final Card c, Integer position) {
|
public Card changeZone(final Zone zoneFrom, Zone zoneTo, final Card c, Integer position) {
|
||||||
game.setChangeZoneLKIInfo(c);
|
|
||||||
|
|
||||||
if (c.isCopiedSpell() || (c.isImmutable() && zoneTo.is(ZoneType.Exile))) {
|
if (c.isCopiedSpell() || (c.isImmutable() && zoneTo.is(ZoneType.Exile))) {
|
||||||
// Remove Effect from command immediately, this is essential when some replacement
|
// Remove Effect from command immediately, this is essential when some replacement
|
||||||
// effects happen during the resolving of a spellability ("the next time ..." effect)
|
// effects happen during the resolving of a spellability ("the next time ..." effect)
|
||||||
@@ -142,6 +140,8 @@ public class GameAction {
|
|||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
game.setChangeZoneLKIInfo(c);
|
||||||
|
|
||||||
boolean suppress = !c.isToken() && zoneFrom.equals(zoneTo);
|
boolean suppress = !c.isToken() && zoneFrom.equals(zoneTo);
|
||||||
|
|
||||||
Card copied = null;
|
Card copied = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user