Commit 4ff550c0 authored by Chunchi Che's avatar Chunchi Che

fix overlay move

parent ea0e5cfc
......@@ -129,7 +129,10 @@ export default async (move: MsgMove) => {
const fromCards = cardStore.at(from.zone, from.controller);
const toCards = cardStore.at(to.zone, to.controller);
if ([HAND, GRAVE, REMOVED, DECK, EXTRA, TZONE].includes(from.zone))
if (
[HAND, GRAVE, REMOVED, DECK, EXTRA, TZONE].includes(from.zone) &&
!from.is_overlay
)
fromCards.forEach(
(c) => c.location.sequence > from.sequence && c.location.sequence--
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment