polywarn followup (trunk only)

This commit is contained in:
nethack.allison
2004-06-04 01:10:44 +00:00
parent 6644c4086f
commit d9e2105d22
2 changed files with 3 additions and 3 deletions

View File

@@ -1523,14 +1523,14 @@ long *abil;
wornbits = (wornmask & *abil);
for(obj = invent; obj; obj = obj->nobj) {
if(obj->oartifact) {
if(obj->oartifact && ((abil != &EWarn_of_mon) || context.warntype.obj)) {
register const struct artifact *art = get_artifact(obj);
if (art) {
if (dtyp &&
(art->cary.adtyp == dtyp || art->defn.adtyp == dtyp))
return obj;
if (spfx && ((art->cspfx & spfx) == spfx ||
(art->spfx &spfx) == spfx))
(art->spfx & spfx) == spfx))
return obj;
}
} else {