Merge pull request #4642 from Furlucis/master

AI firelock using fix
This commit is contained in:
Ccomp5950
2014-03-28 14:42:51 -05:00
+1 -1
View File
@@ -98,7 +98,7 @@
"\The [src]", "Yes, [density ? "open" : "close"]", "No")
if(answer == "No")
return
if(user.stat || !user.canmove || user.stunned || user.weakened || user.paralysis || get_dist(src, user) > 1)
if(user.stat || user.stunned || user.weakened || user.paralysis || (!user.canmove && !isAI(user)) || (get_dist(src, user) > 1 && !isAI(user)))
user << "Sorry, you must remain able bodied and close to \the [src] in order to use it."
return