From 4e60c906353e8887bdf8054c313e4d08c40e9d7f Mon Sep 17 00:00:00 2001 From: cohrs Date: Wed, 27 Mar 2002 05:08:11 +0000 Subject: [PATCH] mimic caught in explosion printed message but wasn't discovered - add seemimic call before printing the "caught" message --- doc/fixes34.1 | 1 + src/explode.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/fixes34.1 b/doc/fixes34.1 index e1df29416..90b739d3a 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -23,6 +23,7 @@ don't drop corpse when a monster kills another monster on an inaccessible location (i.e. behave like xkilled behaves) half-physical-damage from gas spore explosion should only affect you Sunsword didn't stop glowing when hero killed a monster wielding it +mimics caught in explosions with messages printed about them are discovered Platform- and/or Interface-Specific Fixes diff --git a/src/explode.c b/src/explode.c index 457c5f740..cd8e92f1f 100644 --- a/src/explode.c +++ b/src/explode.c @@ -264,8 +264,10 @@ int expltype; (adtyp == AD_DRST) ? "intoxicated" : (adtyp == AD_ACID) ? "burned" : "fried"); - } else if (cansee(i+x-1, j+y-1)) + } else if (cansee(i+x-1, j+y-1)) { + if(mtmp->m_ap_type) seemimic(mtmp); pline("%s is caught in the %s!", Monnam(mtmp), str); + } idamres += destroy_mitem(mtmp, SCROLL_CLASS, (int) adtyp); idamres += destroy_mitem(mtmp, SPBOOK_CLASS, (int) adtyp);