mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 05:30:05 +01:00
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.
This commit is contained in:
@@ -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 ..()
|
||||
|
||||
Reference in New Issue
Block a user