Fixes simple mobs not doing damage. (#21321)

title

Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
Matt Atlas
2025-09-06 21:07:47 +00:00
committed by GitHub
co-authored by Matt Atlas
parent 07dcdb8a06
commit 39a7a37d89
2 changed files with 59 additions and 1 deletions
@@ -255,7 +255,7 @@ ABSTRACT_TYPE(/mob/living/simple_animal/hostile)
var/mob/living/L = last_found_target
if(L.paralysis)
return
on_attack_mob(L, L.attack_generic(src, rand(melee_damage_lower, melee_damage_upper), attacktext, armor_penetration, attack_flags, damage_type))
on_attack_mob(L, L.attack_generic(src, rand(melee_damage_lower, melee_damage_upper), attacktext, environment_smash, armor_penetration, attack_flags, damage_type))
target = L
else if(istype(last_found_target, /obj/machinery/bot))
var/obj/machinery/bot/B = last_found_target