Fixes cult ghosts not being able to be summoned anymore (#22665)

* Should be the fix

* Yes, the debug messages still exist, I know

* No more debug messages

* Logic fix
This commit is contained in:
DGamerL
2023-10-03 17:44:22 +01:00
committed by GitHub
parent ffffb84b90
commit 3d116fc516
+9 -2
View File
@@ -941,8 +941,15 @@ structure_check() searches for nearby cultist structures required for the invoca
notify_ghosts("Manifest rune created in [get_area(src)].", ghost_sound = 'sound/effects/ghost2.ogg', source = src)
var/list/ghosts_on_rune = list()
for(var/mob/dead/observer/O in T)
if(O.client && !iscultist(O) && !jobban_isbanned(O, ROLE_CULTIST) && !O.has_enabled_antagHUD && !QDELETED(src) && !QDELETED(O) && !HAS_TRAIT(O.mind.current, SCRYING))
ghosts_on_rune += O
if(!O.client)
continue
if(iscultist(O) || jobban_isbanned(O, ROLE_CULTIST))
continue
if(O.has_enabled_antagHUD || QDELETED(src) || QDELETED(O))
continue
if(O.mind.current && HAS_TRAIT(O.mind.current, SCRYING))
continue
ghosts_on_rune += O
if(!length(ghosts_on_rune))
to_chat(user, "<span class='cultitalic'>There are no spirits near [src]!</span>")
fail_invoke()