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)
+3 -3
View File
@@ -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)