Fixes ed209 not shooting anything (#43923)

The net projectiles are completely useless and more likely to teleport the
ed than the target, but i'll leave changing these for another PR
This commit is contained in:
AnturK
2019-05-14 12:48:36 -07:00
committed by Tad Hardesty
parent 2862f76951
commit e1bea6d613
@@ -237,7 +237,7 @@ Auto Patrol[]"},
targets += C
if(targets.len>0)
var/mob/living/carbon/t = pick(targets)
if((t.stat!=2) && (!(t.mobility_flags & MOBILITY_STAND)) && (!t.handcuffed)) //we don't shoot people who are dead, cuffed or lying down.
if(t.stat != DEAD && (t.mobility_flags & MOBILITY_STAND) && !t.handcuffed) //we don't shoot people who are dead, cuffed or lying down.
shootAt(t)
switch(mode)
@@ -435,7 +435,7 @@ Auto Patrol[]"},
projectile = /obj/item/projectile/beam/lasertag/redtag
/mob/living/simple_animal/bot/ed209/proc/shootAt(mob/target)
if(lastfired && world.time - lastfired < shot_delay)
if(world.time <= lastfired + shot_delay)
return
lastfired = world.time
var/turf/T = loc