]> granicus.if.org Git - nethack/commitdiff
Vlad won't use digging in his tower
authornethack.allison <nethack.allison>
Sun, 12 Oct 2003 22:56:36 +0000 (22:56 +0000)
committernethack.allison <nethack.allison>
Sun, 12 Oct 2003 22:56:36 +0000 (22:56 +0000)
<email deleted> wrote:
> [...] Vlad happened to be generated with a /WoDig and tried to
> make an escape hole during his last few moves. Shouldn't he
> know, that the floor in his own tower is undigable? So he lost
> valuable time with a pretty senseless action...

doc/fixes34.3
src/muse.c

index 8fc0a33b09a429f99e138ef279c65d09266c650a..c846a491e4b775fda3e42de2870554e479b10e93 100644 (file)
@@ -47,6 +47,7 @@ surface() returns "bottom" when Underwater
 bill for all discarded, opened tins
 monsters that cannot pick things up cannot throw things either
 eating an amulet of unchanging removes intrinsic polymorph
+Vlad won't wast time trying to use wand of digging in his own tower
 
 
 Platform- and/or Interface-Specific Fixes
index 6dd1229002e7f8e9a62dc95c436e71bb7161a170..9d776f8aca07a0b4b304fa2291ba7e74dc16563c 100644 (file)
@@ -438,7 +438,9 @@ struct monst *mtmp;
                    /* digging wouldn't be effective; assume they know that */
                    && !(levl[x][y].wall_info & W_NONDIGGABLE)
                    && !(Is_botlevel(&u.uz) || In_endgame(&u.uz))
-                   && !(is_ice(x,y) || is_pool(x,y) || is_lava(x,y))) {
+                   && !(is_ice(x,y) || is_pool(x,y) || is_lava(x,y))
+                   && !(mtmp->data == &mons[PM_VLAD_THE_IMPALER]
+                        && In_V_tower(&u.uz))) {
                        m.defensive = obj;
                        m.has_defense = MUSE_WAN_DIGGING;
                }