]> granicus.if.org Git - nethack/commitdiff
Fix AD_DCAY mhitm armor erosion type
authorPasi Kallinen <paxed@alt.org>
Fri, 4 Dec 2020 17:00:16 +0000 (19:00 +0200)
committerPasi Kallinen <paxed@alt.org>
Fri, 4 Dec 2020 17:05:24 +0000 (19:05 +0200)
doc/fixes37.0
src/uhitm.c

index ca4cb59399119f58125c9b2aa98412865ff4ba42..8e52f52c29604c70672365e66746303f0ee29a7f 100644 (file)
@@ -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
index 0b64ff8fe93d3f8404de17b478aee201bf60335d..5f2018078b733a9cff880653534cdb635c7762e5 100644 (file)
@@ -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;
     }