fix B14012 - polymorph of monster possessions

Forwarded from the newsgroup:  when a monster gets hit by wand or
spell of polymorph, any armor that fell off was protected from being
hit by that same zap, but a dropped weapon wasn't.  Nor was the whole
dropped inventory in the case where the monster is killed by system
shock rather than transformed.  Protect its entire inventory.
This commit is contained in:
nethack.rankin
2002-11-08 12:45:58 +00:00
parent 52d1737294
commit e639c09f58
12 changed files with 64 additions and 42 deletions

View File

@@ -201,6 +201,7 @@ struct obj *corpse;
/* caller has already checked `can_make_bones()' */
clear_bypasses();
fd = open_bonesfile(&u.uz, &bonesid);
if (fd >= 0) {
(void) close(fd);