summaryrefslogtreecommitdiff
path: root/main.asm
diff options
context:
space:
mode:
authorJimB16 <f1@jimb.de>2015-09-04 22:30:40 +0200
committerJimB16 <f1@jimb.de>2015-09-04 22:30:40 +0200
commitc76a3c6ecd36d650a1715c0f5520c2336bd27f9c (patch)
tree33d6ca89e8050d6a691a2092b02414441480a75b /main.asm
parentd6a4dada406f8ee010f08a16d24907bde50e1d6c (diff)
changed more labels
Diffstat (limited to 'main.asm')
-rw-r--r--main.asm10
1 files changed, 6 insertions, 4 deletions
diff --git a/main.asm b/main.asm
index 76d8881e0..7268c985e 100644
--- a/main.asm
+++ b/main.asm
@@ -35575,7 +35575,7 @@ INCLUDE "trainers/attributes.asm"
ReadTrainerParty: ; 39771
- ld a, [wcfc0]
+ ld a, [InBattleTowerBattle]
bit 0, a
ret nz
@@ -35906,7 +35906,7 @@ endr
Battle_GetTrainerName:: ; 39939
- ld a, [wcfc0]
+ ld a, [InBattleTowerBattle]
bit 0, a
ld hl, wd26b
jp nz, CopyTrainerName
@@ -36818,7 +36818,9 @@ endr
.ApplyLayers
ld hl, TrainerClassAttributes + 3
- ld a, [wcfc0]
+ ; If we have a battle in BattleTower just load the Attributes of the first TrainerClass (Falkner)
+ ; so we have always the same AI, regardless of the loaded cass of trainer
+ ld a, [InBattleTowerBattle]
bit 0, a
jr nz, .asm_4412f
@@ -87453,7 +87455,7 @@ DoBadgeTypeBoosts: ; fbe24
and a
ret nz
- ld a, [wcfc0]
+ ld a, [InBattleTowerBattle]
and a
ret nz