diff options
Diffstat (limited to 'battle/ai')
-rw-r--r-- | battle/ai/items.asm | 2 | ||||
-rw-r--r-- | battle/ai/scoring.asm | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/battle/ai/items.asm b/battle/ai/items.asm index f91f45ee5..cf78980b3 100644 --- a/battle/ai/items.asm +++ b/battle/ai/items.asm @@ -16,7 +16,7 @@ AI_SwitchOrTryItem: ; 38000 bit SUBSTATUS_CANT_RUN, a jr nz, DontSwitch - ld a, [wc731] + ld a, [wEnemyWrapCount] and a jr nz, DontSwitch diff --git a/battle/ai/scoring.asm b/battle/ai/scoring.asm index 39d2a8eca..dbdbb9db8 100644 --- a/battle/ai/scoring.asm +++ b/battle/ai/scoring.asm @@ -1062,7 +1062,7 @@ AI_Smart_Bind: ; 38a71 ; Bind, Wrap, Fire Spin, Clamp ; 50% chance to discourage this move if the player is already trapped. - ld a, [wc730] + ld a, [wPlayerWrapCount] and a jr nz, .asm_38a8b @@ -2466,7 +2466,7 @@ AI_Smart_RapidSpin: ; 39084 ; 80% chance to greatly encourage this move if the enemy is ; trapped (Bind effect), seeded, or scattered with spikes. - ld a, [wc731] + ld a, [wEnemyWrapCount] and a jr nz, .asm_39097 |