From: Pasi Kallinen Date: Sun, 13 Oct 2019 16:16:38 +0000 (+0300) Subject: Fix hero hiding under a statue shattered by land mine X-Git-Tag: v3.6.3.757eca7~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e9ee59ca7f8652702554ddb3cec23bd90be50cc;p=nethack Fix hero hiding under a statue shattered by land mine Trigger a land mine while being polymorphed into a monster that automatically hides (eg. scorpion). Have the statue on the land mine shatter and all items on that square scatter away. Avoid falling into the pit left by the land mine. --- diff --git a/doc/fixes36.3 b/doc/fixes36.3 index a2467729c..8182bfea8 100644 --- a/doc/fixes36.3 +++ b/doc/fixes36.3 @@ -181,6 +181,7 @@ fix exploding land mine moving ball or chain and causing a sanity error fix firing attached iron ball when swallowed causing a sanity error fix vault guard impossible when he could not relocate in certain situation fix temple priests or shopkeepers moving over other monsters +fix hero still hiding under a statue shattered by a land mine Fixes to Post-3.6.2 Problems that Were Exposed Via git Repository diff --git a/src/explode.c b/src/explode.c index 2c46178fd..31ba7c763 100644 --- a/src/explode.c +++ b/src/explode.c @@ -771,6 +771,9 @@ struct obj *obj; /* only scatter this obj */ newsym(x, y); } newsym(sx, sy); + if (sx == u.ux && sy == u.uy && u.uundetected + && hides_under(youmonst.data)) + (void) hideunder(&youmonst); return total; }