Commit e06ef308 authored by Chunchi Che's avatar Chunchi Che

Merge branch 'fix/move' into 'main'

fix overlay move

See merge request !223
parents ea0e5cfc 4ff550c0
Pipeline #22221 passed with stages
in 18 minutes and 22 seconds
......@@ -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