From 6e08da15bcedf8430bda16cbf2377e6ae9837967 Mon Sep 17 00:00:00 2001 From: dolorous Date: Sat, 6 Sep 2008 12:09:37 +0000 Subject: Apply trunk r6881 to 0.4. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6882 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/monstuff.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index 9adc4b1123..0bf007ed85 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -1543,8 +1543,7 @@ bool monster_polymorph(monsters *monster, monster_type targetc, } // Messaging. - bool invis = (!player_see_invis() && (mons_class_flag(targetc, M_INVIS) - || monster->invisible())); + bool can_see = you.can_see(monster); if (monster->has_ench(ENCH_GLOWING_SHAPESHIFTER, ENCH_SHAPESHIFTER)) str_polymon = " changes into "; @@ -1553,7 +1552,7 @@ bool monster_polymorph(monsters *monster, monster_type targetc, else str_polymon = " evaporates and reforms as "; - if (invis) + if (!can_see) str_polymon += "something you cannot see!"; else { -- cgit v1.2.3