another #1441 follow-up bit

This commit is contained in:
nhmall
2025-09-04 22:52:36 -04:00
parent 88eb33f198
commit 774129df11
3 changed files with 9 additions and 1 deletions

View File

@@ -6267,6 +6267,13 @@ mimic_disguised_as_non_mon(struct monst *mtmp)
&& M_AP_TYPE(mtmp) != M_AP_MONSTER);
}
boolean
mimic_disguised_as_mon(struct monst *mtmp)
{
return (M_AP_TYPE(mtmp)
&& M_AP_TYPE(mtmp) == M_AP_MONSTER);
}
staticfn void
nohandglow(struct monst *mon)
{

View File

@@ -192,7 +192,7 @@ bhitm(struct monst *mtmp, struct obj *otmp)
reveal_invis = TRUE;
learn_it = cansee(gb.bhitpos.x, gb.bhitpos.y);
if (resists_magm(mtmp)) { /* match effect on player */
if (mimic_disguised_as_non_mon(mtmp))
if (!mimic_disguised_as_mon(mtmp))
seemimic(mtmp);
shieldeff(mtmp->mx, mtmp->my);
pline("Boing!");