diff options
author | PokeCodec <67983839+PokeCodec@users.noreply.github.com> | 2020-09-05 17:36:10 -0400 |
---|---|---|
committer | PokeCodec <67983839+PokeCodec@users.noreply.github.com> | 2020-09-05 17:36:10 -0400 |
commit | 3ce29ee7bf9b104609cbfced8486884540021c00 (patch) | |
tree | 481fe8e47a883aaf59cfad70a12eac9c3434ed80 /src | |
parent | 5d694edb18554468368be49944b9c5dc6865dd9e (diff) |
Refactor Use Item
Diffstat (limited to 'src')
-rw-r--r-- | src/battle_main.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/battle_main.c b/src/battle_main.c index 7474ea1dd..f118c52fd 100644 --- a/src/battle_main.c +++ b/src/battle_main.c @@ -5556,11 +5556,9 @@ static void HandleAction_UseItem(void) break; case AI_ITEM_CURE_CONDITION: gBattleCommunication[MULTISTRING_CHOOSER] = 0; - if (*(gBattleStruct->AI_itemFlags + gBattlerAttacker / 2) & 1) - { - if (*(gBattleStruct->AI_itemFlags + gBattlerAttacker / 2) & 0x3E) + if ((*(gBattleStruct->AI_itemFlags + gBattlerAttacker / 2) & 1) + && (*(gBattleStruct->AI_itemFlags + gBattlerAttacker / 2) & 0x3E)) gBattleCommunication[MULTISTRING_CHOOSER] = 5; - } else { while (!(*(gBattleStruct->AI_itemFlags + gBattlerAttacker / 2) & 1)) |