summaryrefslogtreecommitdiff
path: root/scripts/victoryroad3.asm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/victoryroad3.asm')
-rwxr-xr-xscripts/victoryroad3.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/victoryroad3.asm b/scripts/victoryroad3.asm
index 33ed97de..31e06053 100755
--- a/scripts/victoryroad3.asm
+++ b/scripts/victoryroad3.asm
@@ -3,13 +3,13 @@ VictoryRoad3Script:
call EnableAutoTextBoxDrawing
ld hl, VictoryRoad3TrainerHeaders
ld de, VictoryRoad3ScriptPointers
- ld a, [W_VICTORYROAD3CURSCRIPT]
+ ld a, [wVictoryRoad3CurScript]
call ExecuteCurMapScriptInTable
- ld [W_VICTORYROAD3CURSCRIPT], a
+ ld [wVictoryRoad3CurScript], a
ret
VictoryRoad3Script_44996:
- ld hl, wd126
+ ld hl, wCurrentMapScriptFlags
bit 5, [hl]
res 5, [hl]
ret z
@@ -39,7 +39,7 @@ VictoryRoad3Script0:
ld a, [hSpriteIndexOrTextID]
cp $f ; Pikachu
jp z, .asm_449fe
- ld hl, wd126
+ ld hl, wCurrentMapScriptFlags
set 5, [hl]
SetEvent EVENT_VICTORY_ROAD_3_BOULDER_ON_SWITCH1
ret