]> granicus.if.org Git - nethack/commit
fix B15007 - boomerangs used hand-to-hand
authornethack.rankin <nethack.rankin>
Fri, 10 Jan 2003 03:33:03 +0000 (03:33 +0000)
committernethack.rankin <nethack.rankin>
Fri, 10 Jan 2003 03:33:03 +0000 (03:33 +0000)
commit3c49f7a9413a3f979c7c7bc1f977852b52b78229
tree5caaacaca5ba7d1b4e5455a4ff891bb4bec31f06
parentea400a778d21d975a256238e48979678df721643
fix B15007 - boomerangs used hand-to-hand

     Hitting with a wielded boomerang was supposed to have a chance to
break it, but the code was located in a spot that would never be reached
when bashing with a missile weapon.  Also, its rnl() usage would have
made the bad effect--losing your weapon--be more likely to occur when
you had good luck and less likely when you had bad luck.  And it wasn't
setting `unweapon', so you wouldn't have gotten a bashing with barehands
message on the next attack after the weapon had been destroyed.
src/uhitm.c