mimic caught in explosion printed message but wasn't discovered

- add seemimic call before printing the "caught" message
This commit is contained in:
cohrs
2002-03-27 05:08:11 +00:00
parent 8a3c5a621f
commit 4e60c90635
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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);