Merge pull request #3453 from Eimras/Diona-shock-fix

Diona don't get shocked working on electrical things
This commit is contained in:
Anewbe
2017-05-17 17:42:01 -05:00
committed by GitHub

View File

@@ -98,6 +98,9 @@
/mob/living/carbon/electrocute_act(var/shock_damage, var/obj/source, var/siemens_coeff = 1.0, var/def_zone = null, var/stun = 1)
if(status_flags & GODMODE) return 0 //godmode
if(def_zone == "l_hand" || def_zone == "r_hand") //Diona (And any other potential plant people) hands don't get shocked.
if(species.flags & IS_PLANT)
return 0
shock_damage *= siemens_coeff
if (shock_damage<1)
return 0