Files
CHOMPStation2/code/game/gamemodes/technomancer/spells/dispel.dm
Neerti 8bf97faaef Another Big Technomancer PR
See PR for details.
2016-10-22 11:51:12 -04:00

25 lines
992 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/weapon/spell/dispel
ability_icon_state = "tech_dispel"
category = SUPPORT_SPELLS
/obj/item/weapon/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/weapon/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
for(var/obj/item/weapon/inserted_spell/I in target)
I.on_expire(dispelled = 1)
log_and_message_admins("dispelled [I] on [target].")
user.adjust_instability(10)
qdel(src)