Removes NOSHIELD

This commit is contained in:
KorPhaeron
2015-12-20 15:21:58 -06:00
parent abb9f30031
commit a0923daa0e
9 changed files with 13 additions and 17 deletions
@@ -72,9 +72,7 @@
/mob/living/carbon/human/proc/check_shields(damage = 0, attack_text = "the attack", atom/movable/AM, attack_type = MELEE_ATTACK, armour_penetration = 0)
var/block_chance_modifier = round(damage / -3)
if(AM)
if(AM.flags & NOSHIELD) //weapon ignores shields altogether
return 0
if(l_hand && !istype(l_hand, /obj/item/clothing))
var/final_block_chance = l_hand.block_chance - (Clamp((armour_penetration-l_hand.armour_penetration)/2,0,100)) + block_chance_modifier //So armour piercing blades can still be parried by other blades, for example
if(l_hand.hit_reaction(src, attack_text, final_block_chance, damage, attack_type))