]> granicus.if.org Git - nethack/commitdiff
fleeing mimics
authorcohrs <cohrs>
Tue, 27 Jan 2004 21:10:14 +0000 (21:10 +0000)
committercohrs <cohrs>
Tue, 27 Jan 2004 21:10:14 +0000 (21:10 +0000)
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
src/monmove.c

index a0c46469ee47c343db9d42ac6d43e2c74f8f2252..6cec3d4119c4c1bbc2e5f7d8d74cb20488d25fba 100644 (file)
@@ -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
index 3035c52ce62c3aee4494a235a6520d8876a91ba4..d63481acf583ecdd2fa718dadd06e430fc6299e4 100644 (file)
@@ -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;
        }