fix #H2559+2564 - using 'a' command to discover potion of oil (trunk only)

From a bug report, if you used the apply command while
not carrying anything applicable except for unknown potion, you would get
"you don't have anything to apply" if that potion wasn't oil but an
inventory selection prompt (with '*' as the default since you wouldn't
have anything considered to be a likely candidate) if that potion was oil,
giving away information.

     This fix makes carrying any unknown potion yield the inventory
selection result, unless oil is already discovered and hero can see that
the unknown potion isn't oil.
This commit is contained in:
nethack.rankin
2012-01-10 08:50:19 +00:00
parent 92b15c5f8a
commit 369b1031fd
2 changed files with 42 additions and 23 deletions

View File

@@ -401,6 +401,7 @@ autosearch finds and transforms secret doors and corridors even while blind,
hangup save made during magic mapping or <foo> detection performed while
underwater could put hero on top of the water after restore
items conferring life drain resistance were affected by drain life spell
'a'pply command could be used to recogniize undiscovered potions of oil
Platform- and/or Interface-Specific Fixes