1
0
forked from noxious/client
This commit is contained in:
Dennis Postma 2025-02-01 14:22:42 +01:00
parent 63889a537a
commit cfdfa98379

View File

@ -110,7 +110,6 @@ const currentDirection = computed(() => {
}) })
const currentAction = computed(() => { const currentAction = computed(() => {
if (props.mapCharacter.isAttacking) return 'attack'
return props.mapCharacter.isMoving ? 'walk' : 'idle' return props.mapCharacter.isMoving ? 'walk' : 'idle'
}) })
@ -139,9 +138,7 @@ const handlePositionUpdate = (newValues: any, oldValues: any) => {
updatePosition(newValues.positionX, newValues.positionY, direction) updatePosition(newValues.positionX, newValues.positionY, direction)
} }
if (newValues.isMoving !== oldValues?.isMoving || if (newValues.isMoving !== oldValues?.isMoving || newValues.rotation !== oldValues?.rotation) {
newValues.rotation !== oldValues?.rotation ||
newValues.attack !== oldValues?.attack) {
updateSprite() updateSprite()
} }
} }