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/spells3.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/spells3.cc') diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc index a7c00c9481..64c27c7fa1 100644 --- a/crawl-ref/source/spells3.cc +++ b/crawl-ref/source/spells3.cc @@ -1290,7 +1290,7 @@ bool cast_haunt(int pow, const coord_def& where, god_type god) (chance > 2) ? MONS_FREEZING_WRAITH // 20%/16% : MONS_SPECTRAL_WARRIOR); // 12% - if ((chance == 3 || chance == 8) && player_see_invis()) + if ((chance == 3 || chance == 8) && you.can_see_invisible()) mon = MONS_SHADOW_WRAITH; // 0%/8% const int monster = -- cgit v1.2.3-54-g00ecf