aboutsummaryrefslogtreecommitdiff
path: root/entity/fox.gbasm
diff options
context:
space:
mode:
Diffstat (limited to 'entity/fox.gbasm')
-rw-r--r--entity/fox.gbasm7
1 files changed, 4 insertions, 3 deletions
diff --git a/entity/fox.gbasm b/entity/fox.gbasm
index 5e225ec..89df17e 100644
--- a/entity/fox.gbasm
+++ b/entity/fox.gbasm
@@ -149,9 +149,10 @@ Fox_Turn:
JR Z, =.End_movement.end
CALL =Laser_sight_check
- LD A, E
- CP $00
- JR Z, =.laser_sight_check_fail
+ LD A, D
+ AND $07
+ CP E
+ JR NZ, =.laser_sight_check_fail
CALL =Laser_Enemy_Attack