Retaliate mobs no longer break stuff after revived with a laz injector. (#24665)

This commit is contained in:
Charlie Nolan
2024-03-18 11:25:35 -07:00
committed by GitHub
parent 13f0d607d6
commit a5aa7d923b
2 changed files with 7 additions and 0 deletions
@@ -29,6 +29,12 @@
M.can_collar = TRUE
if(ishostile(target))
var/mob/living/simple_animal/hostile/H = M
if(isretaliate(target))
// Clear the enemies list so we don't break windows
// to get to people we no longer hate.
var/mob/living/simple_animal/hostile/retaliate/R = H
R.enemies.Cut()
if(malfunctioning)
H.faction |= list("lazarus", "\ref[user]")
H.robust_searching = TRUE