From: Pasi Kallinen Date: Fri, 4 Dec 2020 17:00:16 +0000 (+0200) Subject: Fix AD_DCAY mhitm armor erosion type X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=55b49463056742ab3842b8a4ea49d7ee6306e2f5;p=nethack Fix AD_DCAY mhitm armor erosion type --- diff --git a/doc/fixes37.0 b/doc/fixes37.0 index ca4cb5939..8e52f52c2 100644 --- a/doc/fixes37.0 +++ b/doc/fixes37.0 @@ -318,6 +318,8 @@ reduce the number of "seeXYZ" commands by renaming some: #seenv -> #wizseenv, #seegold -> #showgold, #seespells -> #showspells, #seetrap -> #showtrap when saving while punished or game ends while punished, handling for ball and chain might access freed memory with unpredictable consequences +brown pudding monster hitting another monster with decay attack corroded armor + instead of rotting it Fixes to 3.7.0-x Problems that Were Exposed Via git Repository diff --git a/src/uhitm.c b/src/uhitm.c index 0b64ff8fe..5f2018078 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -1826,7 +1826,7 @@ struct mhitm_data *mhm; mhm->hitflags = (MM_DEF_DIED | (grow_up(magr, mdef) ? 0 : MM_AGR_DIED)); return; } - erode_armor(mdef, ERODE_CORRODE); + erode_armor(mdef, ERODE_ROT); mdef->mstrategy &= ~STRAT_WAITFORU; mhm->damage = 0; }