Fix "gems in apply menu" From a bug report.

This commit is contained in:
nethack.allison
2002-01-28 11:38:25 +00:00
parent aec390d154
commit 39f24cda78
3 changed files with 11 additions and 6 deletions

View File

@@ -819,7 +819,8 @@ register const char *let,*word;
/* only applicable potion is oil, and it will only
be offered as a choice when already discovered */
(otyp != POT_OIL || !otmp->dknown ||
!objects[POT_OIL].oc_name_known))))
!objects[POT_OIL].oc_name_known))
|| (otmp->oclass == GEM_CLASS && !is_greystone(otmp))))
|| (!strcmp(word, "invoke") &&
(!otmp->oartifact && !objects[otyp].oc_unique &&
(otyp != FAKE_AMULET_OF_YENDOR || otmp->known) &&