From: nethack.allison Date: Wed, 19 Feb 2003 11:19:30 +0000 (+0000) Subject: ensure that shade_aware is only set for shades. X-Git-Tag: MOVE2GIT~2153 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d9d7f24b3e9575a0aa2a7cd931781f0f471c07a;p=nethack ensure that shade_aware is only set for shades. --- diff --git a/src/uhitm.c b/src/uhitm.c index c7169fe67..338cbb2d5 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -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 {