summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-15 14:12:39 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-07-15 14:12:39 +0000
commited15698b38cd638552f6a0a12e0ddceef57c9e07 (patch)
tree6c5a7a7346f5083886859a4e8a552e8121b39c85 /crawl-ref/source/spells2.cc
parentd3c9ed21e760065a2faad5b371efdccf5fdace78 (diff)
downloadcrawl-ref-ed15698b38cd638552f6a0a12e0ddceef57c9e07.tar.gz
crawl-ref-ed15698b38cd638552f6a0a12e0ddceef57c9e07.zip
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
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r--crawl-ref/source/spells2.cc3
1 files changed, 3 insertions, 0 deletions
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);