summaryrefslogtreecommitdiff
path: root/src/engine/bank05.asm
diff options
context:
space:
mode:
authorElectroDeoxys <ElectroDeoxys@gmail.com>2019-09-15 09:03:33 +0100
committerElectroDeoxys <ElectroDeoxys@gmail.com>2019-09-15 09:03:33 +0100
commitaafcf7d44b8a69e8d2b6c772ce979d6b75a31676 (patch)
tree96003245471238df714aba84e36c444ce83dacd0 /src/engine/bank05.asm
parentd0058515037aafdaec05d60af3f2bf3f35147803 (diff)
Work on Func_200e5
Diffstat (limited to 'src/engine/bank05.asm')
-rw-r--r--src/engine/bank05.asm3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/bank05.asm b/src/engine/bank05.asm
index 44beb8c..fc54604 100644
--- a/src/engine/bank05.asm
+++ b/src/engine/bank05.asm
@@ -4846,6 +4846,8 @@ Func_169f8: ; 169f8 (5:69f8)
; c holds the attack index chosen by AI,
; and a holds its AI score.
; first check if chosen attack has at least minimum score.
+; then check if first attack is better than second attack
+; in case the second one was chosen.
.asm_16a30
cp $50 ; minimum score to use attack
jr c, .asm_16a77
@@ -4861,6 +4863,7 @@ Func_169f8: ; 169f8 (5:69f8)
jr z, .asm_16a48
scf
jp Func_169e3
+
.asm_16a48
ld a, $0e
call Func_14663