mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-30 12:13:02 +00:00
23 lines
839 B
Plaintext
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)
|