Fixes observer mind selection [NO GBP] (#79471)

## About The Pull Request
Oopsie doopsie: Observers don't have minds, so this excluded them from
midround
## Why It's Good For The Game
More midround candidates
Fixes #79437
## Changelog
🆑
fix: Fixes midround selection for observers
/🆑
This commit is contained in:
Jeremiah
2023-11-02 19:52:42 -06:00
committed by GitHub
parent 72c8a02f6c
commit 8f1e330d2e
@@ -61,9 +61,6 @@
if (isnull(creature.client)) // Are they connected?
trimmed_list.Remove(creature)
continue
if (isnull(creature.mind))
trimmed_list.Remove(creature)
continue
if(creature.client.get_remaining_days(minimum_required_age) > 0)
trimmed_list.Remove(creature)
continue
@@ -73,6 +70,10 @@
if (is_banned_from(creature.ckey, list(antag_flag_override || antag_flag, ROLE_SYNDICATE)))
trimmed_list.Remove(creature)
continue
if (isnull(creature.mind))
continue
if (restrict_ghost_roles && (creature.mind.assigned_role.title in GLOB.exp_specialmap[EXP_TYPE_SPECIAL])) // Are they playing a ghost role?
trimmed_list.Remove(creature)
continue