summaryrefslogtreecommitdiff
path: root/scripts/lorelei.asm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lorelei.asm')
-rwxr-xr-xscripts/lorelei.asm11
1 files changed, 4 insertions, 7 deletions
diff --git a/scripts/lorelei.asm b/scripts/lorelei.asm
index eb6c3e7d..a8e0cb5b 100755
--- a/scripts/lorelei.asm
+++ b/scripts/lorelei.asm
@@ -15,8 +15,7 @@ LoreleiScript_76191: ; 76191 (1d:6191)
ret z
ld hl, wd734
set 1, [hl]
- ld a, [wd863]
- bit 1, a
+ CheckEvent EVENT_BEAT_LORELEIS_ROOM_TRAINER_0
jr z, .asm_761a9
ld a, $5
jr .asm_761ab
@@ -71,9 +70,7 @@ LoreleiScript0: ; 761e2 (1d:61e2)
ld a, [wCoordIndex]
cp $3
jr c, .asm_76206
- ld hl, wd863
- bit 6, [hl]
- set 6, [hl]
+ CheckAndSetEvent EVENT_8E6
jr z, LoreleiScript_761c6
.asm_76206
ld a, $2
@@ -121,9 +118,9 @@ LoreleiTextPointers: ; 76251 (1d:6251)
LoreleiTrainerHeaders: ; 76255 (1d:6255)
LoreleiTrainerHeader0: ; 76255 (1d:6255)
- db $1 ; flag's bit
+ dbEventFlagBit EVENT_BEAT_LORELEIS_ROOM_TRAINER_0
db ($0 << 4) ; trainer's view range
- dw wd863 ; flag's byte
+ dwEventFlagAddress EVENT_BEAT_LORELEIS_ROOM_TRAINER_0
dw LoreleiBeforeBattleText ; TextBeforeBattle
dw LoreleiAfterBattleText ; TextAfterBattle
dw LoreleiEndBattleText ; TextEndBattle