From d2e441927d79a916475e1106c75579d6bc617db3 Mon Sep 17 00:00:00 2001 From: Lucy Date: Mon, 1 Jul 2024 19:36:15 -0400 Subject: [PATCH] Fix runtimes related to opt-in checking --- monkestation/code/modules/blueshift/optin/objectives.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/monkestation/code/modules/blueshift/optin/objectives.dm b/monkestation/code/modules/blueshift/optin/objectives.dm index 1c806b049574..8a846dfc65f2 100644 --- a/monkestation/code/modules/blueshift/optin/objectives.dm +++ b/monkestation/code/modules/blueshift/optin/objectives.dm @@ -8,6 +8,9 @@ /// Returns whether or not our opt in levels/variables are correct for the target. If true, they can be picked as a target. /datum/objective/proc/opt_in_valid(datum/mind/target_mind) + if(ismob(target_mind)) + var/mob/target_mob = target_mind + target_mind = target_mob.mind return (get_opt_in_level(target_mind) <= target_mind.get_effective_opt_in_level()) // ROUND REMOVE