diff options
author | surskitty <surskitty@gmail.com> | 2017-12-11 17:37:34 -0500 |
---|---|---|
committer | surskitty <surskitty@gmail.com> | 2017-12-11 17:37:34 -0500 |
commit | 98128cd4d8457948e7136a16e08bacff0bc3529d (patch) | |
tree | 171c67509afba62571266bd6bebbfdb829d2a876 /battle/ai/items.asm | |
parent | 069ae7e2f3bc4f3939a4b97d6200a3fcdacc904b (diff) | |
parent | 94c7def4883fbdbcd3987a067443a2069b8bb610 (diff) |
Merge branch 'master' of github.com:pret/pokecrystal
Diffstat (limited to 'battle/ai/items.asm')
-rw-r--r-- | battle/ai/items.asm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/battle/ai/items.asm b/battle/ai/items.asm index 325c7b555..5a292763e 100644 --- a/battle/ai/items.asm +++ b/battle/ai/items.asm @@ -27,7 +27,7 @@ AI_SwitchOrTryItem: ; 38000 ld a, [TrainerClass] dec a - ld bc, 7 + ld bc, NUM_TRAINER_ATTRIBUTES call AddNTimes .ok bit SWITCH_OFTEN_F, [hl] @@ -174,8 +174,8 @@ AI_TryItem: ; 38105 ld a, [TrainerClass] dec a - ld hl, TrainerClassAttributes + 5 - ld bc, 7 + ld hl, TrainerClassAttributes + TRNATTR_AI_ITEM_SWITCH + ld bc, NUM_TRAINER_ATTRIBUTES call AddNTimes ld b, h ld c, l |