Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emp act on human fix #7605

Merged
merged 4 commits into from
Nov 18, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions code/modules/mob/living/carbon/human/human_defense.dm
Original file line number Diff line number Diff line change
Expand Up @@ -156,20 +156,14 @@ Contains most of the procs that are called when a mob is attacked by something

/mob/living/carbon/human/emp_act(severity)
. = ..()
for(var/obj/O in src)
if(!O)
continue
O.emp_act(severity)
for(var/obj/limb/O in limbs)
if(O.status & LIMB_DESTROYED)
continue
O.emp_act(severity)
for(var/datum/internal_organ/I in O.internal_organs)
if(I.robotic == FALSE)
continue
I.emp_act(severity)
Drulikar marked this conversation as resolved.
Show resolved Hide resolved


//Returns 1 if the attack hit, 0 if it missed.
/mob/living/carbon/human/proc/attacked_by(obj/item/I, mob/living/user)
if(!I || !user)
Expand Down
Loading