B05002 can open bag then cannot loot it

> Trying to loot a bag on the floor while wielding a cursed
> quarterstaff: "You carefully open the bag... You have no free hand."
> Shouldn't I notice that I have no free hand before even trying?

add freehand() check to able_to_loot()
This commit is contained in:
nethack.allison
2003-07-28 03:08:46 +00:00
parent b750eee32a
commit 0c84601be4
2 changed files with 5 additions and 0 deletions

View File

@@ -112,6 +112,7 @@ stone-to-flesh of spot with multiple statues can animate more than one
use of stethoscope now deliberately impacted when hero is engulfed by whirly
monster but fixed so it can sometimes work on your steed there too
typos fixed in data.base
add freehand() check to able_to_loot()
Platform- and/or Interface-Specific Fixes

View File

@@ -1437,6 +1437,10 @@ boolean looting; /* loot vs tip */
} else if (nolimbs(youmonst.data)) {
pline("Without limbs, you cannot %s anything.", verb);
return FALSE;
} else if (!freehand()) {
pline("Without a free %s, you cannot loot anything.",
body_part(HAND));
return FALSE;
}
return TRUE;
}