]> granicus.if.org Git - nethack/commitdiff
ensure that shade_aware is only set for shades.
authornethack.allison <nethack.allison>
Wed, 19 Feb 2003 11:19:30 +0000 (11:19 +0000)
committernethack.allison <nethack.allison>
Wed, 19 Feb 2003 11:19:30 +0000 (11:19 +0000)
src/uhitm.c

index c7169fe6768ce2deb97153d131074b452fe4eccc..338cbb2d519575b0c49e485ce0bfbf5444fe1d6e 100644 (file)
@@ -682,7 +682,7 @@ int thrown;
                mdat = mon->data;
                tmp = (mdat == &mons[PM_SHADE]) ? 0 : 1;
            } else {
-               if (!shade_aware(obj)) {
+               if (mdat == &mons[PM_SHADE] && !shade_aware(obj)) {
                    tmp = 0;
                    Strcpy(unconventional, cxname(obj));
                } else {