fix dire hit and paralyze heal

This commit is contained in:
CallmeEchoo 2023-04-20 09:44:18 +02:00
parent 52ce399240
commit 216b7a4dfd
2 changed files with 3 additions and 1 deletions

View File

@ -973,6 +973,8 @@ u32 GetItemStatus1Mask(u16 itemId)
const u8 *effect = GetItemEffect(itemId); const u8 *effect = GetItemEffect(itemId);
switch (effect[3]) switch (effect[3])
{ {
case ITEM3_PARALYSIS:
return STATUS1_PARALYSIS;
case ITEM3_FREEZE: case ITEM3_FREEZE:
return STATUS1_FREEZE; return STATUS1_FREEZE;
case ITEM3_BURN: case ITEM3_BURN:

View File

@ -1154,7 +1154,7 @@ static bool32 CannotUseBagBattleItem(u16 itemId)
} }
// Dire Hit // Dire Hit
if (battleUsage == EFFECT_ITEM_SET_FOCUS_ENERGY if (battleUsage == EFFECT_ITEM_SET_FOCUS_ENERGY
&& !(gBattleMons[gBattlerInMenuId].status2 & STATUS2_FOCUS_ENERGY)) && (gBattleMons[gBattlerInMenuId].status2 & STATUS2_FOCUS_ENERGY))
{ {
cannotUse++; cannotUse++;
} }