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.
This commit is contained in:
nethack.rankin
2007-02-10 05:14:22 +00:00
parent 262c1780b6
commit 7c64dbaf83
6 changed files with 22 additions and 8 deletions

View File

@@ -315,6 +315,7 @@ shapechangers who take on mimic or hider form will mimic or hide when feasible
avoid War message if tinning a Rider corpse fails
prevent long messages from triggering access violation or segmentation fault
due to buffer overflow in pline()
cursed corpse wielded by a monster isn't welded to its hand or paw
Platform- and/or Interface-Specific Fixes