prevents people with offstation role from becoming a survivalist (#22805)

This commit is contained in:
GDN
2023-10-14 20:44:28 +02:00
committed by GitHub
parent 4a7019f919
commit cf87929bec
+2 -2
View File
@@ -98,7 +98,7 @@ GLOBAL_VAR_INIT(summon_magic_triggered, FALSE)
if(H.stat == DEAD || !(H.client))
return
if(H.mind)
if(iswizard(H))
if(iswizard(H) || H.mind.offstation_role)
return
if(prob(GLOB.summon_guns_triggered) && !(H.mind in SSticker.mode.traitors))
@@ -120,7 +120,7 @@ GLOBAL_VAR_INIT(summon_magic_triggered, FALSE)
if(H.stat == DEAD || !(H.client))
return
if(H.mind)
if(iswizard(H))
if(iswizard(H) || H.mind.offstation_role)
return
if(prob(GLOB.summon_magic_triggered) && !(H.mind in SSticker.mode.traitors) && !jobban_isbanned(H, ROLE_SYNDICATE))