1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-07-30 01:12:25 +01:00

Fix dmonsfree error

Example: magr `e` uses its `AT_EXPL` attack to kill mdef `e`, whose `AT_BOOM` attack causes an explosion that kills magr before xexplodey kills magr.
This commit is contained in:
NeroOneTrueKing 2021-11-06 00:51:30 -05:00
parent 2123b0337f
commit e25fe10233

View file

@ -10419,7 +10419,10 @@ expl_common:
result |= MM_AGR_STOP;
}
else {
mondead(magr);
/* avoid double-killing magr, if it was slain by retaliatory damage from its attack, perhaps */
if (!DEADMONSTER(magr))
mondead(magr);
if (*hp(magr) > 0)
result |= MM_AGR_STOP;
else