aboutsummaryrefslogtreecommitdiff
path: root/entity/bunny.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2024-12-09 16:09:02 +0900
committerAstatin <[email protected]>2024-12-09 16:09:02 +0900
commit0aebab4bd7a436a0a20168c573b87cb77d86def9 (patch)
tree9b888a66a87f242958644dd30e172e38a02fe380 /entity/bunny.gbasm
parenta0cc9155572b22ac1afd4636593f72a18372187b (diff)
Add freeze status on enemies near bunny when freeze used
Diffstat (limited to 'entity/bunny.gbasm')
-rw-r--r--entity/bunny.gbasm6
1 files changed, 4 insertions, 2 deletions
diff --git a/entity/bunny.gbasm b/entity/bunny.gbasm
index e5106e2..7d5a5d0 100644
--- a/entity/bunny.gbasm
+++ b/entity/bunny.gbasm
@@ -100,10 +100,12 @@ Move_Bunny:
CP $0f
JP NZ, =End_movement.end
LD A, $mem_bunny_direction
- BIT 3, A
+ LD D, A
+ AND $07
+ BIT 3, D
+ LD $mem_bunny_direction, A
JR Z, =End_movement.end
- LD D, A
LD A, $mem_bunny_x
LD B, A
LD A, $mem_bunny_y