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

@@ -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;
}