summaryrefslogtreecommitdiff
path: root/home/trainers2.asm
diff options
context:
space:
mode:
Diffstat (limited to 'home/trainers2.asm')
-rw-r--r--home/trainers2.asm19
1 files changed, 19 insertions, 0 deletions
diff --git a/home/trainers2.asm b/home/trainers2.asm
index 950eabb2..78fb6463 100644
--- a/home/trainers2.asm
+++ b/home/trainers2.asm
@@ -22,6 +22,7 @@ GetTrainerInformation::
inc de
ld a, [hli]
ld [de], a
+ call IsFightingJessieJames
jp BankswitchBack
.linkBattle
ld hl, wTrainerPicPointer
@@ -31,5 +32,23 @@ GetTrainerInformation::
ld [hl], d
ret
+IsFightingJessieJames::
+ ld a, [wTrainerClass]
+ cp ROCKET
+ ret nz
+ ld a, [wTrainerNo]
+ cp $2a
+ ret c
+ ld de, JessieJamesPic
+ cp $2e
+ jr c, .dummy
+ ld de, JessieJamesPic ; possibly meant to add another pic
+.dummy
+ ld hl, wTrainerPicPointer
+ ld a, e
+ ld [hli], a
+ ld [hl], d
+ ret
+
GetTrainerName::
farjp GetTrainerName_