From 848b48602049e09c5d0ddf40b0f2c6c9ed2bfcea Mon Sep 17 00:00:00 2001 From: Tastyfish Date: Fri, 22 Apr 2016 15:59:20 -0400 Subject: [PATCH] Fixes reloading gun for player-controlled hostiles --- code/modules/mob/living/simple_animal/hostile/hostile.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/simple_animal/hostile/hostile.dm b/code/modules/mob/living/simple_animal/hostile/hostile.dm index cc1de35947d..fd38b3e81c7 100644 --- a/code/modules/mob/living/simple_animal/hostile/hostile.dm +++ b/code/modules/mob/living/simple_animal/hostile/hostile.dm @@ -33,6 +33,8 @@ /mob/living/simple_animal/hostile/Life() . = ..() + if(ranged) + ranged_cooldown-- if(!.) walk(src, 0) return 0 @@ -46,8 +48,6 @@ /mob/living/simple_animal/hostile/handle_automated_action() if(AIStatus == AI_OFF) return 0 - if(ranged) - ranged_cooldown-- var/list/possible_targets = ListTargets() //we look around for potential targets and make it a list for later use. if(environment_smash) EscapeConfinement()