Slime AI update (#5309)

Adds a check to the slime AI to loose interest in the current victim if it is dead.
This commit is contained in:
Werner
2018-09-23 13:43:08 +03:00
committed by Erki
parent dca000455c
commit 44b23e0777
2 changed files with 40 additions and 0 deletions
@@ -281,6 +281,9 @@
/mob/living/carbon/slime/proc/handle_AI() // the master AI process
if(Victim && Victim.stat & DEAD)
Victim = null
if(stat == DEAD || client || Victim) return // If we're dead or have a client, we don't need AI, if we're feeding, we continue feeding
AIproc = 1