Refactor Use Item

This commit is contained in:
PokeCodec 2020-09-05 17:36:10 -04:00
parent 5d694edb18
commit 3ce29ee7bf

View file

@ -5556,11 +5556,9 @@ static void HandleAction_UseItem(void)
break; break;
case AI_ITEM_CURE_CONDITION: case AI_ITEM_CURE_CONDITION:
gBattleCommunication[MULTISTRING_CHOOSER] = 0; gBattleCommunication[MULTISTRING_CHOOSER] = 0;
if (*(gBattleStruct->AI_itemFlags + gBattlerAttacker / 2) & 1) if ((*(gBattleStruct->AI_itemFlags + gBattlerAttacker / 2) & 1)
{ && (*(gBattleStruct->AI_itemFlags + gBattlerAttacker / 2) & 0x3E))
if (*(gBattleStruct->AI_itemFlags + gBattlerAttacker / 2) & 0x3E)
gBattleCommunication[MULTISTRING_CHOOSER] = 5; gBattleCommunication[MULTISTRING_CHOOSER] = 5;
}
else else
{ {
while (!(*(gBattleStruct->AI_itemFlags + gBattlerAttacker / 2) & 1)) while (!(*(gBattleStruct->AI_itemFlags + gBattlerAttacker / 2) & 1))