Anti-magic component start enabled (#38388)

This commit is contained in:
XDTM
2018-06-11 07:15:57 +02:00
committed by letterjay
parent de3e4ecec7
commit c67fe4a76f
+2 -1
View File
@@ -1,4 +1,5 @@
/datum/component/anti_magic
var/active = TRUE
var/magic = FALSE
var/holy = FALSE
@@ -7,7 +8,7 @@
holy = _holy
/datum/component/anti_magic/proc/can_protect(_magic = TRUE, _holy = FALSE)
if(!enabled)
if(!active)
return FALSE
if((_magic && magic) || (_holy && holy))
return TRUE