summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-22 18:14:00 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-22 22:37:07 +0200
commit78f7b9d8e5921ef3e1f64d01c802436a654c177a (patch)
tree3d58adf6061925cc6f729a819f4a2c64bccb34d9 /crawl-ref/source/monstuff.cc
parented4a22bce4db2328e945840901176b49d4b573e7 (diff)
downloadcrawl-ref-78f7b9d8e5921ef3e1f64d01c802436a654c177a.tar.gz
crawl-ref-78f7b9d8e5921ef3e1f64d01c802436a654c177a.zip
Move player_see_invis into player class.
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc4
1 files changed, 2 insertions, 2 deletions
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;