From 0829f0595e4373778991651cd71dd869297c0bc6 Mon Sep 17 00:00:00 2001 From: Qwertytoforty <52090703+Qwertytoforty@users.noreply.github.com> Date: Wed, 25 May 2022 14:54:42 -0400 Subject: [PATCH] We have a variable for reflectable, use it (#17867) --- code/modules/mob/living/simple_animal/constructs.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/mob/living/simple_animal/constructs.dm b/code/modules/mob/living/simple_animal/constructs.dm index ab938190978..400be2933da 100644 --- a/code/modules/mob/living/simple_animal/constructs.dm +++ b/code/modules/mob/living/simple_animal/constructs.dm @@ -140,7 +140,7 @@ environment_smash = 1 //only token destruction, don't smash the cult wall NO STOP /mob/living/simple_animal/hostile/construct/armoured/bullet_act(obj/item/projectile/P) - if(istype(P, /obj/item/projectile/energy) || istype(P, /obj/item/projectile/beam)) + if(P.is_reflectable) var/reflectchance = 80 - round(P.damage/3) if(prob(reflectchance)) if((P.damage_type == BRUTE || P.damage_type == BURN))