mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-15 09:03:23 +01:00
Merge pull request #10007 from Certhic/animal-attack
fixes animals attacking while on help intent
This commit is contained in:
@@ -292,8 +292,8 @@
|
||||
return
|
||||
|
||||
/mob/living/attack_animal(mob/living/simple_animal/M)
|
||||
if(M.melee_damage_upper == 0)
|
||||
M.custom_emote(1, "[M.friendly] [src]")
|
||||
if(M.a_intent == INTENT_HELP || M.melee_damage_upper == 0)
|
||||
M.custom_emote(1, "[M.friendly] [src].")
|
||||
return 0
|
||||
else
|
||||
if(M.attack_sound)
|
||||
|
||||
@@ -225,9 +225,9 @@
|
||||
|
||||
// See software.dm for Topic()
|
||||
|
||||
/mob/living/silicon/pai/attack_animal(mob/living/simple_animal/M as mob)
|
||||
if(M.melee_damage_upper == 0)
|
||||
M.custom_emote(1, "[M.friendly] [src]")
|
||||
/mob/living/silicon/pai/attack_animal(mob/living/simple_animal/M)
|
||||
if(M.a_intent == INTENT_HELP || M.melee_damage_upper == 0)
|
||||
M.custom_emote(1, "[M.friendly] [src].")
|
||||
else
|
||||
M.do_attack_animation(src)
|
||||
if(M.attack_sound)
|
||||
|
||||
@@ -203,9 +203,9 @@
|
||||
deal_damage(30)
|
||||
return
|
||||
|
||||
/obj/spacepod/attack_animal(mob/living/simple_animal/user as mob)
|
||||
if(user.melee_damage_upper == 0)
|
||||
user.custom_emote(1, "[user.friendly] [src]")
|
||||
/obj/spacepod/attack_animal(mob/living/simple_animal/user)
|
||||
if(user.a_intent == INTENT_HELP || user.melee_damage_upper == 0)
|
||||
user.custom_emote(1, "[user.friendly] [src].")
|
||||
else
|
||||
var/damage = rand(user.melee_damage_lower, user.melee_damage_upper)
|
||||
deal_damage(damage)
|
||||
|
||||
Reference in New Issue
Block a user