Files
Paradise/code/datums/spells/sentient_sword_lunge.dm
GDN 74c0d9cfab adds the bread smite (#22755)
* adds the bread smite

* you cannot escape
2023-10-12 17:15:46 +01:00

23 lines
839 B
Plaintext

/obj/effect/proc_holder/spell/sentient_sword_lunge
name = "Lunge"
desc = "Lunge at something in your view range."
clothes_req = FALSE
base_cooldown = 15 SECONDS
invocation = "EN GARDE!"
invocation_type = "shout"
sound = 'sound/magic/repulse.ogg'
action_icon_state = "lunge"
/obj/effect/proc_holder/spell/sentient_sword_lunge/create_new_targeting()
return new /datum/spell_targeting/clicked_atom
/obj/effect/proc_holder/spell/sentient_sword_lunge/cast(list/targets, mob/user = usr)
if(!istype(user.loc, /obj/item))
to_chat(user, "<span class='warning'>You cannot use this ability if you're outside a blade!</span>")
return
var/obj/item/nullrod/scythe/talking/user_sword = user.loc
var/mob/living/carbon/holder = user_sword.loc
if(istype(holder))
holder.unEquip(user_sword)
user_sword.throw_at(targets[1], 10, 3, user)