B04001 - Staff of Aesclepius message while swallowed

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.
This commit is contained in:
cohrs
2003-07-01 01:33:42 +00:00
parent 669633eb21
commit 00c666a80f
2 changed files with 3 additions and 1 deletions

View 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

View 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";