From 7ad8fa48c6db7440b63f048fe32b7913c856a7ba Mon Sep 17 00:00:00 2001 From: 4dplanner <3combined@gmail.com> Date: Tue, 29 Jan 2019 18:34:48 +0000 Subject: [PATCH] ?. --- code/datums/components/anti_magic.dm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/code/datums/components/anti_magic.dm b/code/datums/components/anti_magic.dm index 373b818cc11..9b03284513a 100644 --- a/code/datums/components/anti_magic.dm +++ b/code/datums/components/anti_magic.dm @@ -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