fix morphs not being able to attack basic mobs (#29118)

This commit is contained in:
warriorstar-orion
2025-04-26 10:25:42 -04:00
committed by GitHub
parent d0e3d055c0
commit 349de637b8
@@ -201,6 +201,12 @@ RESTRICT_TYPE(/mob/living/basic)
return FALSE
return TRUE
/mob/living/basic/attack_animal(mob/living/simple_animal/M)
. = ..()
if(.)
var/damage = rand(M.melee_damage_lower, M.melee_damage_upper)
return attack_threshold_check(damage, M.melee_damage_type)
/mob/living/basic/handle_environment(datum/gas_mixture/readonly_environment)
SEND_SIGNAL(src, COMSIG_SIMPLEANIMAL_HANDLE_ENVIRONMENT, readonly_environment)