pmd-sky/src/dungeon_statuses.c
AnonymousRandomPerson f4ecfd41e6 Decomped ItemIsActive
2025-03-06 00:04:18 -05:00

17 lines
534 B
C

#include "dungeon_statuses.h"
#include "dungeon_util_static.h"
#include "item.h"
#include "overlay_29_02315118.h"
bool8 IsBlinded(struct entity *entity, bool8 check_held_item)
{
if (EntityIsValid__02315118(entity))
{
struct monster *pokemon_info = GetEntInfo(entity);
if (pokemon_info->blinker_class_status.blinded == STATUS_BLINKER_BLINKER ||
check_held_item && !pokemon_info->is_team_leader && ItemIsActive__0231513C(entity, ITEM_Y_RAY_SPECS))
return TRUE;
}
return FALSE;
}