]> granicus.if.org Git - nethack/commitdiff
Fix thinko in drain life attack
authorPasi Kallinen <paxed@alt.org>
Sat, 5 Feb 2022 08:40:34 +0000 (10:40 +0200)
committerPasi Kallinen <paxed@alt.org>
Sat, 5 Feb 2022 08:40:45 +0000 (10:40 +0200)
Fixes #667

src/uhitm.c

index 6b13551e9c8cd09c1b65eeddf4c86a571bb13d5d..76f2f8e485358667793c7f63d0625276e46c5682 100644 (file)
@@ -1942,7 +1942,7 @@ mhitm_ad_drli(
         boolean negated = !(rn2(10) >= 3 * armpro);
 
         if (!negated && !rn2(3)
-            && !(resists_drli(mdef) || defended(mdef, AD_FIRE))) {
+            && !(resists_drli(mdef) || defended(mdef, AD_DRLI))) {
             mhm->damage = d(2, 6); /* Stormbringer uses monhp_per_lvl
                                     * (usually 1d8) */
             pline("%s becomes weaker!", Monnam(mdef));