diff options
author | dannye <corrnondacqb@yahoo.com> | 2015-08-10 00:00:12 -0500 |
---|---|---|
committer | dannye <corrnondacqb@yahoo.com> | 2015-08-10 00:00:12 -0500 |
commit | 66bc517605860c9f716a176ed467d34097985895 (patch) | |
tree | 4c126cbb3bbdb2b0a236375c2140e7a6c25260a6 /engine/battle/trainer_ai.asm | |
parent | 8a6d46f3d9ba4fb6939eb9ea9949f47aa8608d4a (diff) | |
parent | 2b018159997e3b580efd114ff4e3548a0de3cbc5 (diff) |
Merge branch 'master' of https://github.com/YamaArashi/pokered
Diffstat (limited to 'engine/battle/trainer_ai.asm')
-rw-r--r-- | engine/battle/trainer_ai.asm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/battle/trainer_ai.asm b/engine/battle/trainer_ai.asm index 08205048..afb04216 100644 --- a/engine/battle/trainer_ai.asm +++ b/engine/battle/trainer_ai.asm @@ -191,7 +191,7 @@ AIMoveChoiceModification2: ; 397e7 (e:57e7) AIMoveChoiceModification3: ; 39817 (e:5817) ld hl, wBuffer - 1 ; temp move selection array (-1 byte offset) ld de, wEnemyMonMoves ; enemy moves - ld b, $5 + ld b, NUM_MOVES + 1 .nextMove dec b ret z ; processed all 4 moves @@ -208,7 +208,7 @@ AIMoveChoiceModification3: ; 39817 (e:5817) pop de pop bc pop hl - ld a, [wd11e] + ld a, [wTypeEffectiveness] cp $10 jr z, .nextMove jr c, .notEffectiveMove |