From e84bea2009bf022b04843dac79cce86fd924d0f6 Mon Sep 17 00:00:00 2001 From: cohrs Date: Tue, 27 Jan 2004 21:10:14 +0000 Subject: [PATCH] fleeing mimics Reported to the list back in November: scaring a mimicing mimic will produce a "turns to flee" message, but the mimic does not unmimic nor does it flee. The latter behavior made sense to me as a defense mechanism, so I changed monflee to avoid printing the message in this case. --- doc/fixes34.4 | 1 + src/monmove.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/fixes34.4 b/doc/fixes34.4 index a0c46469e..6cec3d411 100644 --- a/doc/fixes34.4 +++ b/doc/fixes34.4 @@ -17,6 +17,7 @@ usmellmon() instead of "It turns into it" during monster polymorph grammar of messages regarding eating artifacts avoid a message about an invisible monster looking much better player polymorphed as a xorn could not pick up items in pits +don't display "turns to flee" message for a mimicing mimic Platform- and/or Interface-Specific Fixes diff --git a/src/monmove.c b/src/monmove.c index 3035c52ce..d63481acf 100644 --- a/src/monmove.c +++ b/src/monmove.c @@ -217,7 +217,9 @@ boolean fleemsg; if (fleetime == 1) fleetime++; mtmp->mfleetim = min(fleetime, 127); } - if (!mtmp->mflee && fleemsg && canseemon(mtmp) && !mtmp->mfrozen) + if (!mtmp->mflee && fleemsg && canseemon(mtmp) && !mtmp->mfrozen && + mtmp->m_ap_type != M_AP_FURNITURE && + mtmp->m_ap_type != M_AP_OBJECT) pline("%s turns to flee!", (Monnam(mtmp))); mtmp->mflee = 1; }