]> granicus.if.org Git - nethack/commitdiff
unfixed bug #H2668 - hitting disenchanter w/ rings
authorPatR <rankin@nethack.org>
Tue, 27 Jul 2021 19:31:32 +0000 (12:31 -0700)
committerPatR <rankin@nethack.org>
Tue, 27 Jul 2021 19:31:32 +0000 (12:31 -0700)
From 8 or so years ago, hitting a disenchanter without wielding a
weapon and without wearing gloves while wearing a possitively
'charged' ring should reduce the ring's enchantment.  This doesn't
fix that, it just adds a brief comment about it.

src/uhitm.c

index 36f0c21091720364f81133e45992f9caa5366fca..f510686f96cdebc15cb4446b5763811b67a3c9c9 100644 (file)
@@ -4967,6 +4967,15 @@ passive(struct monst *mon,
             } else if (aatyp == AT_BITE || aatyp == AT_BUTT
                        || (aatyp >= AT_STNG && aatyp < AT_WEAP)) {
                 break; /* no object involved */
+            } else {
+                /*
+                 * TODO:  #H2668 - if hitting with a ring that has a
+                 * positive enchantment, it ought to be subject to
+                 * having that enchantment reduced.  But we don't have
+                 * sufficient information here to know which hand/ring
+                 * has delived a weaponless blow.
+                 */
+                ;
             }
             passive_obj(mon, weapon, &(ptr->mattk[i]));
         }