]> granicus.if.org Git - nethack/commit
fix #Q404 - monster wielding cursed corpse
authornethack.rankin <nethack.rankin>
Sat, 10 Feb 2007 05:14:22 +0000 (05:14 +0000)
committernethack.rankin <nethack.rankin>
Sat, 10 Feb 2007 05:14:22 +0000 (05:14 +0000)
commit7c64dbaf83a6d05165e725d4a969e9f091a23e2b
treedea2ef0c428a7f28223613ef9c25b52ed43c5284
parent262c1780b610c9e37351ae7de134a54885a9d0ab
fix #Q404 - monster wielding cursed corpse

     From a bug report, applying a bullwhip
towards a monster to try to steal its weapon would report that a cursed
cockatrice corpse was welded to the monster's hands even though corpses
wielded by the player never become welded.  Code for monsters deciding
what to wield knew that corpses don't weld; everywhere else seems to
assume that they only wield weldable weapons.  Add a routine to check
whether a wielded item is welded, similar to what's done for the hero.  I
fixed a couple of other spots besides use_whip() but didn't hunt all over.
doc/fixes34.4
include/extern.h
src/apply.c
src/muse.c
src/weapon.c
src/wield.c