From: Pasi Kallinen Date: Fri, 2 Mar 2018 13:49:45 +0000 (+0200) Subject: Fix Cleaving giving dmonsfree warning X-Git-Tag: NetHack-3.6.1_RC01~157 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a9b6b6a4eb038e9fef87f0b3b87b6086f07be4fe;p=nethack Fix Cleaving giving dmonsfree warning Due to inverted logic, hitting a blue jelly with the Cleaver could cause a dmonsfree warning - the jelly would die, but then come back to life via the passive attack. This is a post-3.6.0 bug --- diff --git a/src/uhitm.c b/src/uhitm.c index daa069cc4..6807df056 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -540,7 +540,7 @@ struct attack *uattk; mhit = (tmp > dieroll); result = known_hitum(mtmp, uwep, &mhit, tmp, armorpenalty, uattk, dieroll); - (void) passive(mtmp, uwep, mhit, DEADMONSTER(mtmp), AT_WEAP, !uwep); + (void) passive(mtmp, uwep, mhit, !DEADMONSTER(mtmp), AT_WEAP, !uwep); if (mon == mtmp) malive = result; }