Skip to content

Commit

Permalink
Fix runtimes related to opt-in checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy committed Jul 1, 2024
1 parent 974651d commit d2e4419
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions monkestation/code/modules/blueshift/optin/objectives.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d2e4419

Please sign in to comment.