Anti-magic component start enabled (#38388)

This commit is contained in:
XDTM
2018-06-10 22:15:57 -07:00
committed by Tad Hardesty
parent f6bcee68b0
commit 1ca5febe38
+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