mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 01:34:01 +00:00
Fix obsessed not respecting player preferences (#44609)
Also fixes a runtime due to a missing early return
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
if(!obsession)//we didn't find one
|
||||
lose_text = ""
|
||||
qdel(src)
|
||||
return
|
||||
gain_text = "<span class='warning'>You hear a sickening, raspy voice in your head. It wants one small task of you...</span>"
|
||||
owner.mind.add_antag_datum(/datum/antagonist/obsessed)
|
||||
antagonist = owner.mind.has_antag_datum(/datum/antagonist/obsessed)
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
/datum/round_event/obsessed/start()
|
||||
for(var/mob/living/carbon/human/H in shuffle(GLOB.player_list))
|
||||
if(!H.client)
|
||||
if(!H.client || !(ROLE_OBSESSED in H.client.prefs.be_special))
|
||||
continue
|
||||
if(H.stat == DEAD)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user