From a9b6b6a4eb038e9fef87f0b3b87b6086f07be4fe Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Fri, 2 Mar 2018 15:49:45 +0200 Subject: [PATCH] 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 --- src/uhitm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }