summaryrefslogtreecommitdiff
path: root/engine/battle
diff options
context:
space:
mode:
Diffstat (limited to 'engine/battle')
-rw-r--r--engine/battle/ai/items.asm7
-rw-r--r--engine/battle/ai/scoring.asm4
2 files changed, 8 insertions, 3 deletions
diff --git a/engine/battle/ai/items.asm b/engine/battle/ai/items.asm
index 480d1ef60..4de82d153 100644
--- a/engine/battle/ai/items.asm
+++ b/engine/battle/ai/items.asm
@@ -397,7 +397,10 @@ AI_Items:
call EnemyUsedPotion
jp .Use
-.asm_382ae ; This appears to be unused
+; Everything up to "End unused" is unused
+
+.UnusedHealItem: ; unreferenced
+; This has similar conditions to .HealItem
callfar AICheckEnemyMaxHP
jr c, .dont_use
push bc
@@ -440,6 +443,8 @@ AI_Items:
jp c, .Use
jp .DontUse
+; End unused
+
.XAccuracy:
call .XItem
jp c, .DontUse
diff --git a/engine/battle/ai/scoring.asm b/engine/battle/ai/scoring.asm
index b368ba237..c26fb703d 100644
--- a/engine/battle/ai/scoring.asm
+++ b/engine/battle/ai/scoring.asm
@@ -483,7 +483,7 @@ AI_Smart_LockOn:
call AIGetEnemyMove
ld a, [wEnemyMoveStruct + MOVE_ACC]
- cp 180
+ cp 71 percent - 1
jr nc, .asm_3884f
ld a, $1
@@ -535,7 +535,7 @@ AI_Smart_LockOn:
call AIGetEnemyMove
ld a, [wEnemyMoveStruct + MOVE_ACC]
- cp 180
+ cp 71 percent - 1
jr nc, .asm_3888b
dec [hl]