summaryrefslogtreecommitdiff
path: root/src/status_checks_1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/status_checks_1.c')
-rw-r--r--src/status_checks_1.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/status_checks_1.c b/src/status_checks_1.c
index 32ed6bf..9d0bfe8 100644
--- a/src/status_checks_1.c
+++ b/src/status_checks_1.c
@@ -42,3 +42,14 @@ bool8 HasNegativeStatus(struct DungeonEntity *pokemon)
}
return FALSE;
}
+
+bool8 IsSleeping(struct DungeonEntity *pokemon)
+{
+ if (pokemon->entityData->sleepStatus != SLEEP_STATUS_SLEEP &&
+ pokemon->entityData->sleepStatus != SLEEP_STATUS_NAPPING &&
+ pokemon->entityData->sleepStatus != SLEEP_STATUS_NIGHTMARE)
+ {
+ return FALSE;
+ }
+ return TRUE;
+}