Merge pull request #6756 from Neerti/lightning_fixes

Fixes various lightning strike bugs
This commit is contained in:
Atermonera
2020-02-27 23:58:36 -05:00
committed by VirgoBot
parent 790130edd9
commit 1d4d3afd45
6 changed files with 34 additions and 27 deletions
+2
View File
@@ -168,6 +168,8 @@
C.electrocute_act(500, src, def_zone = BP_TORSO)
/proc/tesla_zap(atom/source, zap_range = 3, power, explosive = FALSE, stun_mobs = TRUE)
if(!source) // Some mobs and maybe some objects delete themselves when they die.
return
. = source.dir
if(power < 1000)
return