Update energy_ball.dm

This commit is contained in:
Iamgoofball
2017-01-24 10:57:56 -08:00
committed by GitHub
parent 7448cb495b
commit 82fd1de840
+4 -1
View File
@@ -81,13 +81,16 @@ var/list/blacklisted_tesla_types = typecacheof(list(/obj/machinery/atmospherics,
/obj/singularity/energy_ball/proc/move_the_basket_ball(var/move_amount)
//we face the last thing we zapped, so this lets us favor that direction a bit
var/first_move = dir
for(var/i in 0 to move_amount)
var/move_dir = pick(alldirs)
var/move_dir = pick(alldirs + first_move) //give the first move direction a bit of favoring.
if(target && prob(60))
move_dir = get_dir(src,target)
var/turf/T = get_step(src, move_dir)
if(can_move(T))
loc = T
setDir(move_dir)
for(var/mob/living/carbon/C in loc)
dust_mobs(C)