aboutsummaryrefslogtreecommitdiff
path: root/entity
diff options
context:
space:
mode:
authorAstatin <[email protected]>2025-05-02 11:47:47 +0200
committerAstatin <[email protected]>2025-05-02 11:47:47 +0200
commite322573ecc55a821506e5313e3b9994e1b58745e (patch)
treef3a7fc1b5db202fa8bcd586f50b488091c94373d /entity
parent54fc17521381b2376b43f4e1542ae293319d0582 (diff)
Fix laser not taking a turn to turn when jumped over
Diffstat (limited to 'entity')
-rw-r--r--entity/fox.gbasm14
1 files changed, 14 insertions, 0 deletions
diff --git a/entity/fox.gbasm b/entity/fox.gbasm
index 6f12b3d..33eb51a 100644
--- a/entity/fox.gbasm
+++ b/entity/fox.gbasm
@@ -106,6 +106,20 @@ Fox_Turn:
CP $00
JR Z, =.Try_Basic_Attack
+ LD A, E
+ DEC A
+ DEC D
+ XOR D
+ INC D
+ CP $00
+ JR Z, =.attack
+ BIT 1, A
+ JR NZ, =.attack
+
+ LD D, E
+ JR =.Start_action_or_movement.end
+
+ .attack:
LD D, E
LD A, L
AND $f0