Revert "Fixes energy shield bugs and adds colour change as they take damage" (#22805)

Breaks humans taking damage
This commit is contained in:
Matt Atlas
2026-07-09 23:03:12 +02:00
committed by GitHub
parent 8494a3146f
commit 7a609f1ad7
5 changed files with 19 additions and 57 deletions
@@ -152,7 +152,6 @@ emp_act
return null
/mob/living/carbon/human/check_shields(damage, atom/damage_source, mob/attacker, def_zone, attack_text = "the attack")
var/result
for(var/obj/item/shield in list(l_hand, r_hand, wear_suit, back))
if(!shield)
continue
@@ -161,10 +160,9 @@ emp_act
if(!shield.can_shield_back())
continue
is_on_back = TRUE
result = shield.handle_shield(src, is_on_back, damage, damage_source, attacker, def_zone, attack_text)
if (result == BULLET_ACT_FORCE_PIERCE || result == BULLET_ACT_BLOCK) //Necessary to handle multiple shields.
return result
return result
return shield.handle_shield(src, is_on_back, damage, damage_source, attacker, def_zone, attack_text)
return BULLET_ACT_HIT
/mob/living/carbon/human/emp_act(severity)
/*