fix this really annoying bug (#4115)

What the title says, so if the bullet hits your left leg and there is shrapnel, it should not go to your chest instead.
This commit is contained in:
Alberyk
2018-01-19 17:33:50 -02:00
committed by Erki
parent 32a9afb941
commit 1a475d6f8e

View File

@@ -14,8 +14,6 @@ emp_act
if(!has_organ(def_zone))
return PROJECTILE_FORCE_MISS //if they don't have the organ in question then the projectile just passes by.
var/obj/item/organ/external/organ = get_organ()
//Shields
var/shield_check = check_shields(P.damage, P, null, def_zone, "the [P.name]")
if(shield_check)
@@ -27,6 +25,7 @@ emp_act
//Shrapnel
if(!(species.flags & NO_EMBED) && P.can_embed())
var/obj/item/organ/external/organ = get_organ(def_zone)
var/armor = getarmor_organ(organ, "bullet")
if(prob(20 + max(P.damage - armor, -10)))
var/obj/item/weapon/SP = new P.shrapnel_type()