fixes animals attacking while on help intent

This commit is contained in:
Certhic
2018-10-27 13:52:20 +02:00
parent e7133cc511
commit a082e76838
5 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -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)
+3 -3
View File
@@ -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)