From 70ae2d2162673296f73038f255f190ff12313701 Mon Sep 17 00:00:00 2001 From: "nethack.allison" Date: Fri, 3 Jan 2003 03:54:07 +0000 Subject: [PATCH] fix B16001 handlessness inconsistency [forwarded from newsgroup] When polymorphed into a handless monster, you can't loot a chest that's on the ground but you can pick it up and then apply it when it's in your inventory. --- src/pickup.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pickup.c b/src/pickup.c index 9ff54c738..93a35ef29 100644 --- a/src/pickup.c +++ b/src/pickup.c @@ -1912,6 +1912,13 @@ register int held; menu_on_request; emptymsg[0] = '\0'; + if (nohands(youmonst.data)) { + You("have no hands!"); /* not `body_part(HAND)' */ + return 0; + } else if (!freehand()) { + You("have no free %s.", body_part(HAND)); + return 0; + } if (obj->olocked) { pline("%s to be locked.", Tobjnam(obj, "seem")); if (held) You("must put it down to unlock.");