Fixes Borg Stun Attack and Simple Animal Armor Penetration (#19269)

This commit is contained in:
Fox McCloud
2016-07-12 16:00:35 -04:00
committed by KorPhaeron
parent 3ba756907c
commit 2a10bbf4bc
2 changed files with 15 additions and 3 deletions
@@ -273,8 +273,8 @@
return 0
var/dam_zone = pick("chest", "l_hand", "r_hand", "l_leg", "r_leg")
var/obj/item/bodypart/affecting = get_bodypart(ran_zone(dam_zone))
var/armor = run_armor_check(affecting, "melee")
apply_damage(damage, M.melee_damage_type, affecting, armor, "", "", M.armour_penetration)
var/armor = run_armor_check(affecting, "melee", armour_penetration = M.armour_penetration)
apply_damage(damage, M.melee_damage_type, affecting, armor)
updatehealth()