summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells1.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-11-03 03:40:23 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-11-03 03:40:43 -0800
commitbfe3354fb98fa4842bb50613e3c31e58a5b7d1f9 (patch)
treee6a63e0ab0094ee71919ac37840fdd66c44f903e /crawl-ref/source/spells1.cc
parentf4f1ff8cbaaa06d58f7a509b5a74d7f847aa4d51 (diff)
downloadcrawl-ref-bfe3354fb98fa4842bb50613e3c31e58a5b7d1f9.tar.gz
crawl-ref-bfe3354fb98fa4842bb50613e3c31e58a5b7d1f9.zip
spells1.cc: fix Chain Lightning
Diffstat (limited to 'crawl-ref/source/spells1.cc')
-rw-r--r--crawl-ref/source/spells1.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spells1.cc b/crawl-ref/source/spells1.cc
index 54bf45bd90..798b639003 100644
--- a/crawl-ref/source/spells1.cc
+++ b/crawl-ref/source/spells1.cc
@@ -402,7 +402,7 @@ void cast_chain_lightning(int pow)
if (dist > min_dist)
continue;
- if (_lightning_los(source, monster->pos()))
+ if (!_lightning_los(source, monster->pos()))
continue;
count++;