mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 09:42:29 +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
|
if(!obsession)//we didn't find one
|
||||||
lose_text = ""
|
lose_text = ""
|
||||||
qdel(src)
|
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>"
|
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)
|
owner.mind.add_antag_datum(/datum/antagonist/obsessed)
|
||||||
antagonist = owner.mind.has_antag_datum(/datum/antagonist/obsessed)
|
antagonist = owner.mind.has_antag_datum(/datum/antagonist/obsessed)
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
/datum/round_event/obsessed/start()
|
/datum/round_event/obsessed/start()
|
||||||
for(var/mob/living/carbon/human/H in shuffle(GLOB.player_list))
|
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
|
continue
|
||||||
if(H.stat == DEAD)
|
if(H.stat == DEAD)
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user