Mobs with AI try to stab you when you eat them

This commit is contained in:
Aronai Sieyes
2021-07-07 17:51:37 -04:00
parent 71b5e28fd5
commit 5ec4cd611f
+3
View File
@@ -517,6 +517,9 @@
else
swallow_time = istype(prey, /mob/living/carbon/human) ? belly.human_prey_swallow_time : belly.nonhuman_prey_swallow_time
// Their AI should get notified so they can stab us
prey.ai_holder?.react_to_attack(user)
//Timer and progress bar
if(!do_after(user, swallow_time, prey, exclusive = TRUE))
return FALSE // Prey escpaed (or user disabled) before timer expired.