Files
CHOMPStation2/code/game/gamemodes/technomancer/spells/dispel.dm
CHOMPStation2StaffMirrorBot 65f21fb1d3 [MIRROR] end of file Fix (#10355)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
2025-03-11 17:58:14 +01:00

24 lines
896 B
Plaintext

/datum/technomancer/spell/dispel
name = "Dispel"
desc = "Ends most on-going effects caused by another Technomancer function on the target. Useful if you are worried about \
hitting an ally with a deterimental function, if your opponent has similar capabilities to you, or if you're tired of Instability \
plaguing you."
cost = 25
obj_path = /obj/item/spell/dispel
ability_icon_state = "tech_dispel"
category = SUPPORT_SPELLS
/obj/item/spell/dispel
name = "dispel"
desc = "Useful if you're tired of glowing because of a miscast."
icon_state = "dispel"
cast_methods = CAST_RANGED
aspect = ASPECT_BIOMED
/obj/item/spell/dispel/on_ranged_cast(atom/hit_atom, mob/living/user)
if(isliving(hit_atom) && within_range(hit_atom) && pay_energy(1000))
var/mob/living/target = hit_atom
target.remove_modifiers_of_type(/datum/modifier/technomancer)
user.adjust_instability(10)
qdel(src)