Fixes lightning bolt not giving tesla shock immunity when granted by an admin (#66973)

This commit is contained in:
SmArtKar
2022-05-15 14:41:36 -04:00
committed by GitHub
parent 480751a6f4
commit e0fc6b0e39
2 changed files with 8 additions and 8 deletions
+8
View File
@@ -115,6 +115,14 @@
deactive_msg = "You let the energy flow out of your hands back into yourself..."
projectile_type = /obj/projectile/magic/aoe/lightning
/obj/effect/proc_holder/spell/aimed/lightningbolt/on_gain(mob/living/user)
. = ..()
ADD_TRAIT(user, TRAIT_TESLA_SHOCKIMMUNE, "lightning_bolt_spell")
/obj/effect/proc_holder/spell/aimed/lightningbolt/on_lose(mob/living/user)
. = ..()
REMOVE_TRAIT(user, TRAIT_TESLA_SHOCKIMMUNE, "lightning_bolt_spell")
/obj/effect/proc_holder/spell/aimed/fireball
name = "Fireball"
desc = "This spell fires an explosive fireball at a target."