From: cohrs Date: Thu, 16 May 2002 04:02:52 +0000 (+0000) Subject: change appearance if polymorphing while mimicing X-Git-Tag: MOVE2GIT~2740 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d62c6eac08184e5c65bee935e60cccc4531a077f;p=nethack change appearance if polymorphing while mimicing As per : > I had a game today where I was polymorphed (by a sink) into a mimic, and > #monster-ed (hid). The symbol on the map for me was ]. Then, I polymorphed > again, this time into a kobold lord -- but the symbol remained ]. This > seems wrong. Handle this similar to the polyman code. --- diff --git a/doc/fixes34.1 b/doc/fixes34.1 index 5cdcf2e58..f9249e4a6 100644 --- a/doc/fixes34.1 +++ b/doc/fixes34.1 @@ -107,6 +107,7 @@ give more specific message when forbidden role attempts to use twoweapon mode avoid double billing if #loot causes a shop's bag of holding to explode when polymorphed, player killing a paper or straw golem via fire damage would kill the golem twice, resulting in an impossible error +usually stop mimicing if you polymorph while using #monster mimic capability Platform- and/or Interface-Specific Fixes diff --git a/src/polyself.c b/src/polyself.c index d05437a7c..ade9ddf51 100644 --- a/src/polyself.c +++ b/src/polyself.c @@ -356,6 +356,9 @@ int mntmp; youmonst.mappearance == GOLD_PIECE) { /* stop mimicking gold immediately */ if (multi < 0) unmul(""); + } else if (mons[mntmp].mlet != S_MIMIC) { + /* as in polyman() */ + youmonst.m_ap_type = M_AP_NOTHING; } if (is_male(&mons[mntmp])) { if(flags.female) dochange = TRUE;