Fixes beepsky stunning people in mechs and other structures

This commit is contained in:
d3athrow
2013-09-22 15:34:26 -05:00
parent f7042bc3c0
commit b883cb9675
2 changed files with 4 additions and 0 deletions

View File

@@ -271,6 +271,8 @@ Auto Patrol: []"},
walk_to(src,0)
if (target) // make sure target exists
if(!istype(target.loc, /turf))
return
if (get_dist(src, src.target) <= 1) // if right next to perp
playsound(src.loc, 'sound/weapons/Egloves.ogg', 50, 1, -1)
src.icon_state = "[lasercolor]ed209-c"

View File

@@ -219,6 +219,8 @@ Auto Patrol: []"},
walk_to(src,0)
if(target) // make sure target exists
if(!istype(target.loc, /turf))
return
if(get_dist(src, src.target) <= 1) // if right next to perp
if(istype(src.target,/mob/living/carbon))
playsound(src.loc, 'sound/weapons/Egloves.ogg', 50, 1, -1)