This commit is contained in:
4dplanner
2019-01-29 18:34:48 +00:00
parent 7a707d3c8f
commit 7ad8fa48c6

View File

@@ -35,12 +35,10 @@
/datum/component/anti_magic/proc/protect(datum/source, mob/user, _magic, _holy, major, self, list/protection_sources)
if(((_magic && magic) || (_holy && holy)) && (!self || blocks_self))
protection_sources += parent
if(reaction)
reaction.Invoke(user, major)
reaction?.Invoke(user, major)
if(major)
charges--
if(charges <= 0)
if(expire)
expire.Invoke(user)
expire?.Invoke(user)
return COMPONENT_BLOCK_MAGIC