]> granicus.if.org Git - nethack/commitdiff
B04001 - Staff of Aesclepius message while swallowed
authorcohrs <cohrs>
Tue, 1 Jul 2003 01:33:42 +0000 (01:33 +0000)
committercohrs <cohrs>
Tue, 1 Jul 2003 01:33:42 +0000 (01:33 +0000)
Since cansee() is false for all locations while swallowed, need to test if
the monster being hit is the one that swallowed you to ensure that various
artifact hit messages, including the DRLI message, are printed.

doc/fixes34.2
src/artifact.c

index 036ca72eddc18fda11049dc6fc863d54cb81179e..436409b408c5e8be2f67b852d0c424251acd0e44 100644 (file)
@@ -98,6 +98,7 @@ geographical shopkeeper updates
 stethoscope use should be free the first time it's use per player move
 travel command caches last position to make non-mouse less painful
 update pit trapped time when polymorphing to or from a monster that passes_walls
+show artifact hit message which affect the monster that swallowed the hero
 
 
 Platform- and/or Interface-Specific Fixes
index 8ee060795618f6850070579b826d9b189e75c2d6..eb758c631a04f24e9198088333099fbf0eb188f7 100644 (file)
@@ -942,7 +942,8 @@ int dieroll; /* needed for Magicbane and vorpal blades */
        boolean youattack = (magr == &youmonst);
        boolean youdefend = (mdef == &youmonst);
        boolean vis = (!youattack && magr && cansee(magr->mx, magr->my))
-               || (!youdefend && cansee(mdef->mx, mdef->my));
+           || (!youdefend && cansee(mdef->mx, mdef->my))
+           || (youattack && u.uswallow && mdef == u.ustuck && !Blind);
        boolean realizes_damage;
        const char *wepdesc;
        static const char you[] = "you";