mirror of
https://github.com/pret/pmd-sky.git
synced 2026-08-06 11:13:32 -05:00
17 lines
534 B
C
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;
|
|
}
|