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
This commit is contained in:
Pasi Kallinen
2018-03-02 15:49:45 +02:00
parent ee64ef5482
commit a9b6b6a4eb

View File

@@ -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;
}