From ed15698b38cd638552f6a0a12e0ddceef57c9e07 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Sun, 15 Jul 2007 14:12:39 +0000 Subject: Corona overrides invisibility. To check if something is *really* invisible, use foo.invisible(), not foo.has_ench(ENCH_INVIS) or foo.duration[DUR_INVIS]. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1874 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spells2.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/spells2.cc') diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc index 13fe97e359..fb93985dc0 100644 --- a/crawl-ref/source/spells2.cc +++ b/crawl-ref/source/spells2.cc @@ -822,6 +822,9 @@ void cast_toxic_radiance(void) if (monster->type != -1 && mons_near(monster)) { + // Monsters affected by corona are still invisible in that + // radiation passes through them without affecting them. Therefore, + // this check should not be !monster->invisible(). if (!monster->has_ench(ENCH_INVIS)) { poison_monster(monster, KC_YOU); -- cgit v1.2.3-54-g00ecf