diff --git a/battle/ai/scoring.asm b/battle/ai/scoring.asm index 7ca08d333..7ea1ec8fe 100644 --- a/battle/ai/scoring.asm +++ b/battle/ai/scoring.asm @@ -439,41 +439,34 @@ AIScoring_LeechHit: ; 387f7 AIScoring_LockOn: ; 3881d ld a, [PlayerSubStatus5] - bit 5, a + bit SUBSTATUS_LOCK_ON, a jr nz, .asm_38882 push hl call AICheckEnemyQuarterHP - jr nc, .asm_38877 call AICheckEnemyHalfHP - jr c, .asm_38834 call AICompareSpeed - jr nc, .asm_38877 - .asm_38834 ld a, [PlayerEvaLevel] cp $a jr nc, .asm_3887a - cp $8 jr nc, .asm_38875 ld a, [EnemyAccLevel] cp $5 jr c, .asm_3887a - cp $7 jr c, .asm_38875 ld hl, EnemyMonMoves ld c, EnemyMonMovesEnd - EnemyMonMoves + 1 - .asm_3884f dec c jr z, .asm_38877 @@ -490,18 +483,16 @@ AIScoring_LockOn: ; 3881d ld a, $1 ld [hBattleTurn], a + push hl push bc - callba Function347c8 - ld a, [$d265] cp $a pop bc pop hl jr c, .asm_3884f - .asm_38875 pop hl ret @@ -514,8 +505,8 @@ AIScoring_LockOn: ; 3881d .asm_3887a pop hl call Function39527 - ret c + dec [hl] dec [hl] ret @@ -546,11 +537,9 @@ AIScoring_LockOn: ; 3881d dec [hl] jr .asm_3888b - .asm_388a2 pop hl jp AIDiscourageMove - ; 388a6 @@ -632,7 +621,6 @@ AIScoring_EvasionUp: ; 388d4 jr c, .asm_388ef jr .asm_38911 - .asm_3890a call Function39527 jr c, .asm_38911 @@ -661,7 +649,7 @@ AIScoring_EvasionUp: ; 388d4 jr nz, .asm_388ef ld a, [PlayerSubStatus1] - bit SUBSTATUS_ENCORED, a + bit SUBSTATUS_ROLLOUT, a jr nz, .asm_388ef @@ -679,8 +667,8 @@ AIScoring_EvasionUp: ; 388d4 .asm_38941 call Function39527 - ret c + dec [hl] ret ; 38947 @@ -802,7 +790,7 @@ AIScoring_AccuracyDown: ; 38985 jr nz, .asm_3899d ld a, [PlayerSubStatus1] - bit SUBSTATUS_ENCORED, a + bit SUBSTATUS_ROLLOUT, a jr nz, .asm_3899d .asm_389e4 @@ -951,7 +939,7 @@ AIScoring_Bind: ; 38a71 jr nz, .asm_38a91 ld a, [PlayerSubStatus1] - and 1<