Prevents an AI from being buckled.

This commit is contained in:
Firecage
2015-05-05 17:03:53 +02:00
parent dfaf90c79e
commit 13b9e928d7
+5 -1
View File
@@ -34,7 +34,11 @@
if(!can_buckle || !istype(M) || (M.loc != loc) || M.buckled || (buckle_requires_restraints && !M.restrained()))
return 0
if (isslime(M))
if (isslime(M) || isAI(M))
if(M == usr)
M << "<span class='warning'>You are unable to buckle yourself to the [src]!</span>"
else
usr << "<span class='warning'>You are unable to buckle [M] to the [src]!</span>"
return 0
M.buckled = src