Added canReach to Cryocells, as per #1939088.

This commit is contained in:
stephen001
2008-06-21 02:01:39 +00:00
parent 0c12ed0327
commit 0e75728646

View File

@@ -202,8 +202,11 @@ obj/machinery/cryo_cell
attackby(obj/item/weapon/grab/G, mob/user)
if (stat & NOPOWER) return
if ((!( istype(G, /obj/item/weapon/grab) ) || !( ismob(G.affecting) )))
return
var/result = src.canReach(user, null, 1)
if (result==0)
user.client_mob() << "You can't reach [src]."
return
if (src.occupant)
user.client_mob() << "\blue <B>The cell is already occupied!</B>"
@@ -470,4 +473,4 @@ obj/machinery/cryo_cell
allow_drop()
return 0
*/
*/