Bugfix the last hardly broken Quickfix

This commit is contained in:
aronmal 2023-01-13 09:00:11 +01:00
parent 6cc8a4517c
commit 078a21c876
Signed by: aronmal
GPG key ID: 816B7707426FC612

View file

@ -91,7 +91,7 @@ function useGameEvent(count: number) {
const { target, params } = field
const { x, y } = target
if (isHit(hits, x, y).length)
return Object.assign(field, Object.assign(params, { imply: true }))
return { ...field, params: { ...params, imply: true } }
return field
})
setTargetList(e => {
@ -115,7 +115,7 @@ function useGameEvent(count: number) {
const { target, params } = field
const { x, y } = target
if (isHit(hits, x, y).length || isSet(x, y))
return Object.assign(field, Object.assign(params, { imply: true }))
return { ...field, params: { ...params, imply: true } }
return field
})
if (!targetPreviewPos.shouldShow)