mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 01:57:01 +00:00
?.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user