[MIRROR] Fixes attacks doing 0 damage when dismemberment wound fails (#3160)

* Fixes attacks doing 0 damage when dismemberment wound fails (#56697)

* Fixes attacks doing 0 damage when dismemberment wound fails

Co-authored-by: YPOQ <30683121+YPOQ@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-02-07 10:39:49 +01:00
committed by GitHub
parent c959838122
commit cd2eaacf3e
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -51,3 +51,4 @@
log_wound(victim, src)
dismembered_part.dismember(wounding_type == WOUND_BURN ? BURN : BRUTE)
qdel(src)
return TRUE
@@ -191,8 +191,7 @@
if(prob(base_chance))
var/datum/wound/loss/dismembering = new
dismembering.apply_dismember(src, wounding_type)
return TRUE
return dismembering.apply_dismember(src, wounding_type)
//when a limb is dropped, the internal organs are removed from the mob and put into the limb
/obj/item/organ/proc/transfer_to_limb(obj/item/bodypart/LB, mob/living/carbon/C)