From ff85d5100e4519681a71cd825d431beb387d69e3 Mon Sep 17 00:00:00 2001 From: ATH1909 <42606352+ATH1909@users.noreply.github.com> Date: Tue, 1 Dec 2020 12:49:16 -0600 Subject: [PATCH] unfucks hitting simplemobs with melee attacks (sorry!) (#55269) Adds a single "!" to the code I added (in #55023) to make it not make most simplemobs immune to being hit with most melee weapons. --- code/_onclick/item_attack.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/_onclick/item_attack.dm b/code/_onclick/item_attack.dm index 232c226e2f0..17ebdc9ef9f 100644 --- a/code/_onclick/item_attack.dm +++ b/code/_onclick/item_attack.dm @@ -146,7 +146,7 @@ return TRUE //successful attack /mob/living/simple_animal/attacked_by(obj/item/I, mob/living/user) - if(attack_threshold_check(I.force, I.damtype, MELEE, FALSE)) + if(!attack_threshold_check(I.force, I.damtype, MELEE, FALSE)) playsound(loc, 'sound/weapons/tap.ogg', I.get_clamped_volume(), TRUE, -1) else return ..()