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
@@ -255,14 +255,6 @@
spell_type = /obj/effect/proc_holder/spell/aimed/lightningbolt
cost = 1
/datum/spellbook_entry/lightningbolt/Buy(mob/living/carbon/human/user,obj/item/spellbook/book) //return TRUE on success
. = ..()
ADD_TRAIT(user, TRAIT_TESLA_SHOCKIMMUNE, "lightning_bolt_spell")
/datum/spellbook_entry/lightningbolt/Refund(mob/living/carbon/human/user, obj/item/spellbook/book)
. = ..()
REMOVE_TRAIT(user, TRAIT_TESLA_SHOCKIMMUNE, "lightning_bolt_spell")
/datum/spellbook_entry/infinite_guns
name = "Lesser Summon Guns"
desc = "Why reload when you have infinite guns? Summons an unending stream of bolt action rifles that deal little damage, but will knock targets down. Requires both hands free to use. Learning this spell makes you unable to learn Arcane Barrage."
+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."