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:
@@ -540,7 +540,7 @@ struct attack *uattk;
|
|||||||
mhit = (tmp > dieroll);
|
mhit = (tmp > dieroll);
|
||||||
result = known_hitum(mtmp, uwep, &mhit, tmp, armorpenalty,
|
result = known_hitum(mtmp, uwep, &mhit, tmp, armorpenalty,
|
||||||
uattk, dieroll);
|
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)
|
if (mon == mtmp)
|
||||||
malive = result;
|
malive = result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user