Stops manned turrets from firing when the user unbuckles themselves from the turret (#31754)

* The clown is drunk, and the cards of death wait on him

* Update power.dm
This commit is contained in:
vuonojenmustaturska
2017-10-19 13:41:28 +03:00
committed by CitadelStationBot
parent 98a583b249
commit 7045809aa2
2 changed files with 6 additions and 5 deletions

View File

@@ -278,7 +278,7 @@
//dist_check - set to only shock mobs within 1 of source (vendors, airlocks, etc.)
//No animations will be performed by this proc.
/proc/electrocute_mob(mob/living/carbon/M, power_source, obj/source, siemens_coeff = 1, dist_check = FALSE)
if(ismecha(M.loc))
if(!M || ismecha(M.loc))
return 0 //feckin mechs are dumb
if(dist_check)
if(!in_range(source,M))