Files
Polaris/code/game/gamemodes/technomancer/spells/dispel.dm
Neerti 53d60eb554 Does even more work.
NOTE: asphyxiation is broken!
2016-06-23 05:21:04 -04:00

22 lines
872 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 = 75
obj_path = /obj/item/weapon/spell/dispel
ability_icon_state = "tech_dispel"
/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) && pay_energy(1000))
var/mob/living/target = hit_atom
for(var/obj/item/weapon/inserted_spell/I in target)
I.on_expire(dispelled = 1)
user.adjust_instability(10)