From: PatR Date: Tue, 27 Jul 2021 19:31:32 +0000 (-0700) Subject: unfixed bug #H2668 - hitting disenchanter w/ rings X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81b3b56296d94caf7a70bfdab1ad91aeec07a595;p=nethack unfixed bug #H2668 - hitting disenchanter w/ rings 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. --- diff --git a/src/uhitm.c b/src/uhitm.c index 36f0c2109..f510686f9 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -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])); }