anchor.diff:  	throwforce = 10
   	hitsound = 'sound/weapons/bladeslice.ogg'
   	attack_verb = list("attacked", "slashed", "stabbed", "sliced", "tore", "lacerated", "ripped", "diced", "rended")
  -	var/datum/action/innate/heretic_shatter/linked_action
  -
  -/obj/item/melee/sickly_blade/Initialize()
  -	. = ..()
  -	linked_action = new(src)
   
   /obj/item/melee/sickly_blade/attack(mob/living/target, mob/living/user)
   	if(!(IS_HERETIC(user) || IS_HERETIC_MONSTER(user)))
  
positive.code: 
  	if(target.stat == DEAD)
  		to_chat(user,"<span class='warning'>[target.real_name] is dead. Bring them onto a transmutation rune!</span>")
  
  /datum/action/innate/heretic_shatter
  	name = "Shattering Offer"
  	desc = "After a brief delay, you will be granted salvation from a dire situation at the cost of your blade. (Teleports you to a random safe turf on your current z level after a windup, but destroys your blade.)"
  	background_icon_state = "bg_ecult"
  	button_icon_state = "shatter"
  	icon_icon = 'icons/mob/actions/actions_ecult.dmi'
  	check_flags = MOBILITY_HOLD|MOBILITY_MOVE|MOBILITY_USE
  	var/mob/living/carbon/human/holder
  	var/obj/item/melee/sickly_blade/sword
  
  /datum/action/innate/heretic_shatter/Grant(mob/user, obj/object)
  	sword = object
  	holder = user
  	//i know what im doing
  	return ..()
  
  /datum/action/innate/heretic_shatter/IsAvailable()
  	if(IS_HERETIC(holder) || IS_HERETIC_MONSTER(holder))
  		return TRUE
  	else
  		return FALSE
  
  /datum/action/innate/heretic_shatter/Activate()
  	if(do_after(holder,10, target = holder))
  		var/turf/safe_turf = find_safe_turf(zlevels = sword.z, extended_safety_checks = TRUE)
  		do_teleport(holder,safe_turf,forceMove = TRUE,channel=TELEPORT_CHANNEL_MAGIC)
  		to_chat(holder,"<span class='warning'>You feel a gust of energy flow through your body... the Rusted Hills heard your call...</span>")
  		qdel(sword)
  
  /obj/item/melee/sickly_blade
  	name = "sickly blade"
  
negative.code: 		return
  	return ..()
  
  /obj/item/melee/sickly_blade/attack_self(mob/user)
  	var/turf/safe_turf = find_safe_turf(zlevels = z, extended_safety_checks = TRUE)
  	if(IS_HERETIC(user) || IS_HERETIC_MONSTER(user))
  		if(do_teleport(user, safe_turf, forceMove = TRUE, channel = TELEPORT_CHANNEL_MAGIC))
  			to_chat(user,"<span class='warning'>As you shatter [src], you feel a gust of energy flow through your body. The Rusted Hills heard your call...</span>")
  		else
  			to_chat(user,"<span class='warning'>You shatter [src], but your plea goes unanswered.</span>")
  	else
  		to_chat(user,"<span class='warning'>You shatter [src].</span>")
  	playsound(src, "shatter", 70, TRUE) //copied from the code for smashing a glass sheet onto the ground to turn it into a shard
  	qdel(src)
  
  /obj/item/melee/sickly_blade/afterattack(atom/target, mob/user, proximity_flag, click_parameters)
  	. = ..()
  