Simple Mob Pointblank Fix (#9861)

This commit is contained in:
Geeves
2020-09-02 21:44:06 -03:00
committed by GitHub
parent a13e9eeaec
commit fe1abe5b1b
2 changed files with 7 additions and 1 deletions
@@ -449,7 +449,7 @@ mob/living/simple_animal/bullet_act(var/obj/item/projectile/Proj)
//TODO: refactor mob attackby(), attacked_by(), and friends.
/mob/living/simple_animal/proc/attacked_with_item(obj/item/O, mob/user)
if(istype(O, /obj/item/trap/animal))
if(istype(O, /obj/item/trap/animal) || istype(O, /obj/item/gun))
O.attack(src, user)
return
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)