diff options
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 5 |
1 files 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 { |