[MIRROR] NODISMEMBER mobs are no longer miraculously immune to the flesh heretic worm [MDB IGNORE] (#20008)

* NODISMEMBER mobs are no longer miraculously immune to the flesh heretic worm (#74141)

When the NODISMEMBER trait check was passed, it would return without
calling the rest of AttackingTarget and not actually follow through with
dealing the damage. Now, the early return calls parent and completes
normally.

* NODISMEMBER mobs are no longer miraculously immune to the flesh heretic worm

---------

Co-authored-by: Rhials <Datguy33456@gmail.com>
This commit is contained in:
SkyratBot
2023-03-22 00:47:03 -07:00
committed by GitHub
co-authored by Rhials
parent da11587bdf
commit 3178cf2fcc
@@ -322,7 +322,8 @@
if(iscarbon(target))
var/mob/living/carbon/carbon_target = target
if(HAS_TRAIT(carbon_target, TRAIT_NODISMEMBER))
return
return ..()
var/list/parts_to_remove = list()
for(var/obj/item/bodypart/bodypart in carbon_target.bodyparts)
if(bodypart.body_part != HEAD && bodypart.body_part != CHEST && bodypart.body_part != LEG_LEFT && bodypart.body_part != LEG_RIGHT)