Refactor Use Item
This commit is contained in:
parent
5d694edb18
commit
3ce29ee7bf
1 changed files with 2 additions and 4 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue