mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
Retaliate mobs no longer break stuff after revived with a laz injector. (#24665)
This commit is contained in:
@@ -241,6 +241,7 @@
|
||||
#define isguardian(A) (istype((A), /mob/living/simple_animal/hostile/guardian))
|
||||
#define isnymph(A) (istype((A), /mob/living/simple_animal/diona))
|
||||
#define ishostile(A) (istype((A), /mob/living/simple_animal/hostile))
|
||||
#define isretaliate(A) (istype((A), /mob/living/simple_animal/hostile/retaliate))
|
||||
#define isterrorspider(A) (istype((A), /mob/living/simple_animal/hostile/poison/terror_spider))
|
||||
#define isslaughterdemon(A) (istype((A), /mob/living/simple_animal/demon/slaughter))
|
||||
#define isdemon(A) (istype((A), /mob/living/simple_animal/demon))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user