mirror of
https://github.com/pret/pmd-red.git
synced 2026-09-07 16:45:39 -05:00
poisoned typo
This commit is contained in:
@@ -85,7 +85,7 @@ typedef struct BurnClassStatus
|
||||
} BurnClassStatus;
|
||||
|
||||
// Useful when checking if a mon is poisoned without having to check for Poison and Bad Poison every time.
|
||||
#define ENTITY_POISIONED(entityInfo)((entityInfo->burnClassStatus.status == STATUS_POISONED || entityInfo->burnClassStatus.status == STATUS_BADLY_POISONED))
|
||||
#define ENTITY_POISONED(entityInfo)((entityInfo->burnClassStatus.status == STATUS_POISONED || entityInfo->burnClassStatus.status == STATUS_BADLY_POISONED))
|
||||
|
||||
// size: 0xC
|
||||
typedef struct FrozenClassStatus
|
||||
|
||||
@@ -547,7 +547,7 @@ void CheriBerryItemAction(Entity *pokemon, Entity *target)
|
||||
void PechaBerryItemAction(Entity *pokemon, Entity *target)
|
||||
{
|
||||
EntityInfo *entInfo = GetEntInfo(target);
|
||||
if (ENTITY_POISIONED(entInfo))
|
||||
if (ENTITY_POISONED(entInfo))
|
||||
EndBurnClassStatus(pokemon, target);
|
||||
else
|
||||
TryDisplayDungeonLoggableMessage3(pokemon, target, *gUnknown_80F89F4); // Pointer to "But nothing happened!"
|
||||
|
||||
@@ -858,7 +858,7 @@ void EndAbilityImmuneStatus(Entity *attacker, Entity *target)
|
||||
EndFrozenClassStatus(attacker, target);
|
||||
}
|
||||
|
||||
if (HasAbility(target, ABILITY_IMMUNITY) && ENTITY_POISIONED(targetInfo)) {
|
||||
if (HasAbility(target, ABILITY_IMMUNITY) && ENTITY_POISONED(targetInfo)) {
|
||||
EndBurnClassStatus(attacker, target);
|
||||
}
|
||||
|
||||
|
||||
@@ -250,7 +250,7 @@ u32 GetAIUseItemProbability(Entity *targetPokemon, Item *item, u32 itemTargetFla
|
||||
}
|
||||
break;
|
||||
case ITEM_PECHA_BERRY:
|
||||
if (!ENTITY_POISIONED(pokemonInfo))
|
||||
if (!ENTITY_POISONED(pokemonInfo))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user