Bugfix the last hardly broken Quickfix
This commit is contained in:
parent
6cc8a4517c
commit
078a21c876
1 changed files with 2 additions and 2 deletions
|
@ -91,7 +91,7 @@ function useGameEvent(count: number) {
|
||||||
const { target, params } = field
|
const { target, params } = field
|
||||||
const { x, y } = target
|
const { x, y } = target
|
||||||
if (isHit(hits, x, y).length)
|
if (isHit(hits, x, y).length)
|
||||||
return Object.assign(field, Object.assign(params, { imply: true }))
|
return { ...field, params: { ...params, imply: true } }
|
||||||
return field
|
return field
|
||||||
})
|
})
|
||||||
setTargetList(e => {
|
setTargetList(e => {
|
||||||
|
@ -115,7 +115,7 @@ function useGameEvent(count: number) {
|
||||||
const { target, params } = field
|
const { target, params } = field
|
||||||
const { x, y } = target
|
const { x, y } = target
|
||||||
if (isHit(hits, x, y).length || isSet(x, y))
|
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
|
return field
|
||||||
})
|
})
|
||||||
if (!targetPreviewPos.shouldShow)
|
if (!targetPreviewPos.shouldShow)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue