mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 10:01:40 +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)
|
/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))
|
if(((_magic && magic) || (_holy && holy)) && (!self || blocks_self))
|
||||||
protection_sources += parent
|
protection_sources += parent
|
||||||
if(reaction)
|
reaction?.Invoke(user, major)
|
||||||
reaction.Invoke(user, major)
|
|
||||||
if(major)
|
if(major)
|
||||||
charges--
|
charges--
|
||||||
if(charges <= 0)
|
if(charges <= 0)
|
||||||
if(expire)
|
expire?.Invoke(user)
|
||||||
expire.Invoke(user)
|
|
||||||
return COMPONENT_BLOCK_MAGIC
|
return COMPONENT_BLOCK_MAGIC
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user