breaking wands (trunk only)

From a bug report, polymorph of self due to
breaking a wand also polymorphed various items that were dropped in the
process, unlike the case of zapping polymorph at monsters which excludes
dropped items from being poly'd.  This polymorphs the pile at the hero's
feet before polymorphing the hero.  I first tried to handle it using
obj->bypass like with monsters, but that didn't work.  Post-3.4.3, the
bypass handling is also used for polyself (by retouch_equipment()) and
it was getting reset at an inconvenient time.

     He also complained that he failed to get "you feel shuddering
vibrations" when some polymorphed objects got destroyed.  That message
is issued by weffects() which do_break_wand() doesn't call.  It ought to
be fixed, but this patch doesn't address it.

     Lastly, add code to prevent objects guarded against polymorph via
obj->bypass from getting used up when creating polypile golems.
This commit is contained in:
nethack.rankin
2008-10-20 00:57:16 +00:00
parent 9a7c5194a0
commit b0478ecef8
3 changed files with 54 additions and 19 deletions

View File

@@ -287,6 +287,9 @@ when probing from inside an engulfer, "not carrying anything" overlooked hero
wearing or removing an amulet of restful sleep clobbered permanent sleepiness
if attempt to select a co-aligned artifact for first divine gift fails because
none is available, choose one from among nonaligned artifacts
if breaking a wand of polymorph causes hero to drop items, don't transform them
if polymorph causes a monster to drop items, they won't be used up via
shuddering vibrations or as golem creation fodder
Platform- and/or Interface-Specific Fixes