From 506a14084e32d7532b8400a6457f46492bbc47ab Mon Sep 17 00:00:00 2001 From: Rangi <35663410+Rangi42@users.noreply.github.com> Date: Tue, 13 Apr 2021 18:24:37 -0400 Subject: The 'def_trainers' macro checks that trainers' event flag bits are correct (#318) --- scripts/PewterGym.asm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts/PewterGym.asm') diff --git a/scripts/PewterGym.asm b/scripts/PewterGym.asm index ba0bdd00..f65d5506 100644 --- a/scripts/PewterGym.asm +++ b/scripts/PewterGym.asm @@ -4,7 +4,7 @@ PewterGym_Script: res 6, [hl] call nz, .LoadNames call EnableAutoTextBoxDrawing - ld hl, PewterGymTrainerHeader0 + ld hl, PewterGymTrainerHeaders ld de, PewterGym_ScriptPointers ld a, [wPewterGymCurScript] call ExecuteCurMapScriptInTable @@ -86,6 +86,8 @@ PewterGym_TextPointers: dw PewterGymText5 dw PewterGymText6 +PewterGymTrainerHeaders: + def_trainers 2 PewterGymTrainerHeader0: trainer EVENT_BEAT_PEWTER_GYM_TRAINER_0, 5, PewterGymBattleText1, PewterGymEndBattleText1, PewterGymAfterBattleText1 db -1 ; end -- cgit v1.3.1-sl0p