Fixes various lightning strike bugs.

This commit is contained in:
Neerti
2020-02-25 21:49:38 -05:00
parent d079fc6329
commit 6898823361
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