aboutsummaryrefslogtreecommitdiffstats
path: root/engine/battle/trainer_ai.asm
diff options
context:
space:
mode:
authorPokefanMarcel <166040321+PokefanMarcel@users.noreply.github.com>2025-08-16 14:37:08 +0200
committerGitHub <noreply@github.com>2025-08-16 08:37:08 -0400
commit31fc2e229df2b61c7edcc36e8960d5ab99fcc0ee (patch)
treea6f8ee81e78c81dd7abfe92adfe61546a30dd032 /engine/battle/trainer_ai.asm
parentList end markers (-1 aka $FF) are not part of table data (diff)
downloadpokeyellow-31fc2e229df2b61c7edcc36e8960d5ab99fcc0ee.tar.gz
pokeyellow-31fc2e229df2b61c7edcc36e8960d5ab99fcc0ee.tar.xz
pokeyellow-31fc2e229df2b61c7edcc36e8960d5ab99fcc0ee.zip
Use `<STAT>_UP1_EFFECT` constants (#522)
Diffstat (limited to 'engine/battle/trainer_ai.asm')
-rw-r--r--engine/battle/trainer_ai.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/battle/trainer_ai.asm b/engine/battle/trainer_ai.asm
index 6092fc8e..4134047f 100644
--- a/engine/battle/trainer_ai.asm
+++ b/engine/battle/trainer_ai.asm
@@ -683,22 +683,22 @@ AICheckIfHPBelowFraction:
ret
AIUseXAttack:
- ld b, $A
+ ld b, ATTACK_UP1_EFFECT
ld a, X_ATTACK
jr AIIncreaseStat
AIUseXDefend:
- ld b, $B
+ ld b, DEFENSE_UP1_EFFECT
ld a, X_DEFEND
jr AIIncreaseStat
AIUseXSpeed:
- ld b, $C
+ ld b, SPEED_UP1_EFFECT
ld a, X_SPEED
jr AIIncreaseStat
AIUseXSpecial:
- ld b, $D
+ ld b, SPECIAL_UP1_EFFECT
ld a, X_SPECIAL
; fallthrough