Merge pull request #7059 from Citadel-Station-13/upstream-merge-38388

[MIRROR] Anti-magic components start active
This commit is contained in:
deathride58
2018-06-12 03:15:28 +00:00
committed by GitHub
+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