From 78f7b9d8e5921ef3e1f64d01c802436a654c177a Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Thu, 22 Oct 2009 18:14:00 +0200 Subject: Move player_see_invis into player class. --- crawl-ref/source/monstuff.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/monstuff.cc') diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index 6d07e5263d..42a27dc898 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -2213,7 +2213,7 @@ bool monster_polymorph(monsters *monster, monster_type targetc, // Messaging. bool can_see = you.can_see(monster); - bool can_see_new = !mons_class_flag(targetc, M_INVIS) || player_see_invis(); + bool can_see_new = !mons_class_flag(targetc, M_INVIS) || you.can_see_invisible(); bool need_note = false; std::string old_name = monster->full_name(DESC_CAP_A); @@ -6690,7 +6690,7 @@ static bool _handle_wand(monsters *monster, bolt &beem) case WAND_INVISIBILITY: if (!monster->has_ench(ENCH_INVIS) && !monster->has_ench(ENCH_SUBMERGED) - && (!mons_friendly(monster) || player_see_invis(false))) + && (!mons_friendly(monster) || you.can_see_invisible(false))) { beem.target = monster->pos(); niceWand = true; -- cgit v1.2.3-54-g00ecf