Merge pull request #10007 from Certhic/animal-attack

fixes animals attacking while on help intent
This commit is contained in:
variableundefined
2018-10-27 22:52:51 +08:00
committed by GitHub
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)