Revert
This commit is contained in:
parent
63889a537a
commit
cfdfa98379
@ -110,7 +110,6 @@ const currentDirection = computed(() => {
|
||||
})
|
||||
|
||||
const currentAction = computed(() => {
|
||||
if (props.mapCharacter.isAttacking) return 'attack'
|
||||
return props.mapCharacter.isMoving ? 'walk' : 'idle'
|
||||
})
|
||||
|
||||
@ -139,9 +138,7 @@ const handlePositionUpdate = (newValues: any, oldValues: any) => {
|
||||
updatePosition(newValues.positionX, newValues.positionY, direction)
|
||||
}
|
||||
|
||||
if (newValues.isMoving !== oldValues?.isMoving ||
|
||||
newValues.rotation !== oldValues?.rotation ||
|
||||
newValues.attack !== oldValues?.attack) {
|
||||
if (newValues.isMoving !== oldValues?.isMoving || newValues.rotation !== oldValues?.rotation) {
|
||||
updateSprite()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user