diff --git a/src/components/game/character/Character.vue b/src/components/game/character/Character.vue index a6e46a5..29596bf 100644 --- a/src/components/game/character/Character.vue +++ b/src/components/game/character/Character.vue @@ -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() } }