makes slimes clear target on death, and delete actions, and abort walking on destroy (#26621)

This commit is contained in:
chuga-git
2024-09-03 13:03:41 +00:00
committed by GitHub
parent 4be3cdeb4c
commit 482089ec8c
2 changed files with 5 additions and 0 deletions
@@ -5,6 +5,9 @@
if(buckled)
Feedstop(silent = TRUE) //releases ourselves from the mob we fed on.
if(Target)
Target = null
if(!gibbed)
if(is_adult)
var/mob/living/simple_animal/slime/M = new(loc, colour)
@@ -103,9 +103,11 @@
add_language("Bubblish")
/mob/living/simple_animal/slime/Destroy()
walk_to(src, 0)
for(var/A in actions)
var/datum/action/AC = A
AC.Remove(src)
qdel(AC)
Target = null
return ..()