The 'def_trainers' macro checks that trainers' event flag bits are correct (#318)

This commit is contained in:
Rangi 2021-04-13 18:24:37 -04:00 committed by GitHub
parent 2954013da1
commit 506a14084e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
71 changed files with 274 additions and 149 deletions

View file

@ -137,6 +137,10 @@ SeafoamIslandsB4F_TextPointers:
dw SeafoamIslands5Text4
dw SeafoamIslands5Text5
; Articuno is object 3, but its event flag is bit 2.
; This is not a problem because its sight range is 0, and
; trainer headers were not stored by ExecuteCurMapScriptInTable.
def_trainers 2
ArticunoTrainerHeader:
trainer EVENT_BEAT_ARTICUNO, 0, ArticunoBattleText, ArticunoBattleText, ArticunoBattleText
db -1 ; end