Fixes Obsession rolling while Be Antag is set to no. (#2754)

## About The Pull Request
Fixes #2258, where people can roll Obsessed despite having Be Antagonist
set to no.
thx odairuu

## Why It's Good For The Game
Less need for ahelps (yippee!)
## Proof Of Testing

Compiled and worked on a private server.

## Changelog
fix: fixes obsession rolling when be antag is set to no
This commit is contained in:
Yayyay007
2024-12-23 11:24:25 -05:00
committed by GitHub
parent 0f9891f457
commit 42cfd7874e
+1 -1
View File
@@ -11,7 +11,7 @@
/datum/round_event/obsessed/start()
for(var/mob/living/carbon/human/H in shuffle(GLOB.player_list))
if(!H.client || !(ROLE_OBSESSED in H.client.prefs.be_special))
if(!H.client || !(ROLE_OBSESSED in H.client.prefs.be_special) || !H.client.prefs?.read_preference(/datum/preference/toggle/be_antag))
continue
if(H.stat == DEAD)
continue