Merge pull request #28593 from ChangelingRain/abductorfix

Fixes abductors not being able to sleep people
This commit is contained in:
Jordan Brown
2017-06-20 10:30:54 -04:00
committed by GitHub

View File

@@ -428,7 +428,7 @@ Congratulations! You are now trained for invasive xenobiology research!"}
add_logs(user, L, "stunned")
/obj/item/weapon/abductor_baton/proc/SleepAttack(mob/living/L,mob/living/user)
if(L.stun || L.sleeping)
if(L.incapacitated(TRUE, TRUE))
L.visible_message("<span class='danger'>[user] has induced sleep in [L] with [src]!</span>", \
"<span class='userdanger'>You suddenly feel very drowsy!</span>")
playsound(loc, 'sound/weapons/egloves.ogg', 50, 1, -1)