<commit_before>/obj/effect/proc_holder/spell/targeted/lichdom
	name = "Bind Soul"
	desc = "A dark necromantic pact that can forever bind your soul to an item of your choosing. So long as both your body and the item remain intact you can revive from death, though the time between reincarnations grows steadily with use."
	school = "necromancy"
	charge_max = 10
	clothes_req = 0
	centcom_cancast = 0
	invocation = "NECREM IMORTIUM!"
	invocation_type = "shout"
	range = -1
	level_max = 0 //cannot be improved
	cooldown_min = 10
	include_user = 1

	var/obj/marked_item
	var/mob/living/current_body

	action_icon_state = "skeleton"

/obj/effect/proc_holder/spell/targeted/lichdom/New()
	if(ticker.mode.round_ends_with_antag_death)
		ticker.mode.round_ends_with_antag_death = 0

	..()
/obj/effect/proc_holder/spell/targeted/lichdom/cast(list/targets)
	for(var/mob/user in targets)
		var/list/hand_items = list()
		if(iscarbon(user))
			hand_items = list(user.get_active_hand(),user.get_inactive_hand())

		if(marked_item && !stat_allowed) //sanity, shouldn't happen without badminry
			marked_item = null
			return

		if(stat_allowed) //Death is not my end!
			if(user.stat == CONSCIOUS && iscarbon(user))
				user << "<span class='notice'>You aren't dead enough to revive!</span>" //Usually a good problem to have
				charge_counter = charge_max
				return

			if(!marked_item.loc) //Wait nevermind
				user << "<span class='warning'>Your phylactery is gone!</span>"
				return<commit_msg>Fixes the message of losing the phylactery on the bind to object spell, now it actually shows up.<commit_after>/obj/effect/proc_holder/spell/targeted/lichdom
	name = "Bind Soul"
	desc = "A dark necromantic pact that can forever bind your soul to an item of your choosing. So long as both your body and the item remain intact you can revive from death, though the time between reincarnations grows steadily with use."
	school = "necromancy"
	charge_max = 10
	clothes_req = 0
	centcom_cancast = 0
	invocation = "NECREM IMORTIUM!"
	invocation_type = "shout"
	range = -1
	level_max = 0 //cannot be improved
	cooldown_min = 10
	include_user = 1

	var/obj/marked_item
	var/mob/living/current_body

	action_icon_state = "skeleton"

/obj/effect/proc_holder/spell/targeted/lichdom/New()
	if(ticker.mode.round_ends_with_antag_death)
		ticker.mode.round_ends_with_antag_death = 0

	..()
/obj/effect/proc_holder/spell/targeted/lichdom/cast(list/targets)
	for(var/mob/user in targets)
		var/list/hand_items = list()
		if(iscarbon(user))
			hand_items = list(user.get_active_hand(),user.get_inactive_hand())

		if(marked_item && !stat_allowed) //sanity, shouldn't happen without badminry
			marked_item = null
			return

		if(stat_allowed) //Death is not my end!
			if(user.stat == CONSCIOUS && iscarbon(user))
				user << "<span class='notice'>You aren't dead enough to revive!</span>" //Usually a good problem to have
				charge_counter = charge_max
				return

			if(!marked_item || qdeleted(marked_item)) //Wait nevermind
				user << "<span class='warning'>Your phylactery is gone!</span>"
				return
{'fraction_non_alphanumeric': 0.10504065040650407, 'fraction_numerical': 0.0065040650406504065, 'mean_word_length': 4.285223367697594, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7460426', 'n_tokens_mistral': 1161, 'n_tokens_neox': 1027, 'n_words': 285}