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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user