Skip to content

Commit

Permalink
Fix AI_Smart_Curse labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Oct 17, 2024
1 parent ffe649f commit 8e9706d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions engine/battle/ai/scoring.asm
Original file line number Diff line number Diff line change
Expand Up @@ -1818,17 +1818,17 @@ AI_Smart_Curse:
jr z, .ghost_curse

call AICheckEnemyHalfHP
jr nc, .encourage
jr nc, .discourage

ld a, [wEnemyAtkLevel]
cp BASE_STAT_LEVEL + 4
jr nc, .encourage
jr nc, .discourage
cp BASE_STAT_LEVEL + 2
ret nc

ld a, [wBattleMonType1]
cp GHOST
jr z, .greatly_encourage
jr z, .greatly_discourage
cp SPECIAL
ret nc
ld a, [wBattleMonType2]
Expand All @@ -1840,9 +1840,9 @@ AI_Smart_Curse:
dec [hl]
ret

.greatly_encourage
.greatly_discourage
inc [hl]
.encourage
.discourage
inc [hl]
ret

Expand All @@ -1851,7 +1851,7 @@ AI_Smart_Curse:
jp nc, AIDiscourageMove

call AICheckEnemyHalfHP
jr nc, .encourage
jr nc, .discourage

ld a, [wPlayerSubStatus1]
bit SUBSTATUS_CURSE, a
Expand Down

0 comments on commit 8e9706d

Please sign in to comment.