Merge pull request #15591 from Lobachevskiy/telebaton-fix

Fix police and telebatons ignoring shields
This commit is contained in:
KorPhaeron
2016-02-18 19:49:54 -06:00
@@ -56,6 +56,10 @@
if(!isrobot(target)) return
else
if(cooldown <= 0)
if(ishuman(target))
var/mob/living/carbon/human/H = target
if (H.check_shields(0, "[user]'s [name]", src, MELEE_ATTACK))
return
playsound(get_turf(src), 'sound/effects/woodhit.ogg', 75, 1, -1)
target.Weaken(3)
add_logs(user, target, "stunned", src)