fix nightmare status only being healed in doubles

this came up in a conversation on discord. its not tested.
This commit is contained in:
CallmeEchoo 2023-04-16 13:11:49 +02:00
parent 2eabcea86e
commit 7d4807d956

View file

@ -16506,9 +16506,10 @@ void BS_ItemCureStatus(void) {
{
gBattleMons[gBattlerAttacker].status2 &= ~GetItemStatus2Mask(gLastUsedItem);
gBattlerTarget = BATTLE_PARTNER(gBattlerAttacker);
}
if (GetItemStatus1Mask(gLastUsedItem) & STATUS1_SLEEP)
gBattleMons[gBattlerAttacker].status2 &= ~STATUS2_NIGHTMARE;
}
PREPARE_SPECIES_BUFFER(gBattleTextBuff1, GetMonData(&party[gBattleStruct->itemPartyIndex[gBattlerAttacker]], MON_DATA_SPECIES));
gBattlescriptCurrInstr = cmd->nextInstr;