is_special_character() mind check (#16938)

This commit is contained in:
SabreML
2021-10-15 10:57:46 +01:00
committed by GitHub
parent 0e33ca9be7
commit 9c23f0c8f5
+1 -2
View File
@@ -629,7 +629,6 @@ GLOBAL_VAR_INIT(nologevent, 0)
*
* Arguments:
* * M - the mob you're checking
* *
*/
/proc/is_special_character(mob/M)
if(!SSticker.mode)
@@ -640,7 +639,7 @@ GLOBAL_VAR_INIT(nologevent, 0)
var/mob/living/silicon/robot/R = M
if(R.emagged)
return TRUE
if(M.mind.special_role)//If they have a mind and special role, they are some type of traitor or antagonist.
if(M.mind?.special_role)//If they have a mind and special role, they are some type of traitor or antagonist.
return TRUE
return FALSE