summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-info.cc
diff options
context:
space:
mode:
authorShmuale Mark <shm.mark@gmail.com>2014-03-06 21:55:29 -0500
committerShmuale Mark <shm.mark@gmail.com>2014-03-06 22:31:27 -0500
commit48382f717c41f581fc5c3b6014c686f840b3019a (patch)
tree32934f96376db9af3bc1b7090dd085c47956c397 /crawl-ref/source/mon-info.cc
parentfec218c2940d4f2f9f03297ab67a74ce059bf44a (diff)
downloadcrawl-ref-48382f717c41f581fc5c3b6014c686f840b3019a.tar.gz
crawl-ref-48382f717c41f581fc5c3b6014c686f840b3019a.zip
Try to make player ghost / pandemonium lord see invisible show up right.
Previously, it simply checked whether the base type had see invisible. This was worthless in the case of panlords and ghosts, since whether they could see invisble was based on info they got in their ghost_demon struct.
Diffstat (limited to 'crawl-ref/source/mon-info.cc')
-rw-r--r--crawl-ref/source/mon-info.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-info.cc b/crawl-ref/source/mon-info.cc
index 4c3c57b7af..11085a5d47 100644
--- a/crawl-ref/source/mon-info.cc
+++ b/crawl-ref/source/mon-info.cc
@@ -699,6 +699,7 @@ monster_info::monster_info(const monster* m, int milev)
u.ghost.xl_rank = ghost_level_to_rank(ghost.xl);
u.ghost.ac = quantise(ghost.ac, 5);
u.ghost.damage = quantise(ghost.damage, 5);
+ u.ghost.can_sinv = ghost.see_invis;
}
// book loading for player ghost and vault monsters