<commit_before>/mob/living/simple_animal/hostile/illusion
	name = "illusion"
	desc = "It's a fake!"
	icon = 'icons/effects/effects.dmi'
	icon_state = "static"
	icon_living = "static"
	icon_dead = "null"
	melee_damage_lower = 5
	melee_damage_upper = 5
	a_intent = "harm"
	attacktext = "gores"
	maxHealth = 100
	health = 100
	speed = 0
	faction = list("illusion")
	var/life_span = INFINITY //how long until they despawn
	var/mob/living/parent_mob
	var/multiply_chance = 0 //if we multiply on hit


/mob/living/simple_animal/hostile/illusion/Life()
	..()
	if(world.time > life_span)
		death()


/mob/living/simple_animal/hostile/illusion/proc/Copy_Parent(mob/living/original, life = 50, health = 100, damage = 0, replicate = 0 )
	appearance = original.appearance
	parent_mob = original
	dir = original.dir
	life_span = world.time+life
	melee_damage_lower = damage
	melee_damage_upper = damage
	multiply_chance = replicate
	faction -= "neutral"


/mob/living/simple_animal/hostile/illusion/death()
	..()
	visible_message("<span class='warning'>[src] vanishes in a puff of smoke! It was a fake!</span>")
	qdel(src)<commit_msg>Fixes illusions running about on their face<commit_after>/mob/living/simple_animal/hostile/illusion
	name = "illusion"
	desc = "It's a fake!"
	icon = 'icons/effects/effects.dmi'
	icon_state = "static"
	icon_living = "static"
	icon_dead = "null"
	melee_damage_lower = 5
	melee_damage_upper = 5
	a_intent = "harm"
	attacktext = "gores"
	maxHealth = 100
	health = 100
	speed = 0
	faction = list("illusion")
	var/life_span = INFINITY //how long until they despawn
	var/mob/living/parent_mob
	var/multiply_chance = 0 //if we multiply on hit


/mob/living/simple_animal/hostile/illusion/Life()
	..()
	if(world.time > life_span)
		death()


/mob/living/simple_animal/hostile/illusion/proc/Copy_Parent(mob/living/original, life = 50, health = 100, damage = 0, replicate = 0 )
	appearance = original.appearance
	parent_mob = original
	dir = original.dir
	life_span = world.time+life
	melee_damage_lower = damage
	melee_damage_upper = damage
	multiply_chance = replicate
	faction -= "neutral"
	transform = matrix()
	pixel_y = 0


/mob/living/simple_animal/hostile/illusion/death()
	..()
	visible_message("<span class='warning'>[src] vanishes in a puff of smoke! It was a fake!</span>")
	qdel(src)
{'fraction_non_alphanumeric': 0.12310359774599046, 'fraction_numerical': 0.01517121803207629, 'mean_word_length': 4.405152224824356, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '6538005', 'n_tokens_mistral': 927, 'n_tokens_neox': 840, 'n_words': 187}