summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-util.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-07-12 20:36:20 -0400
committerNeil Moore <neil@s-z.org>2014-07-12 20:58:10 -0400
commit3d5dc734227ba4b2309639e6575eb55e657ecb82 (patch)
treec1f72c2aff07808c0672cd874ff984649eed1ebc /crawl-ref/source/spl-util.cc
parentac4b98f7f12b67270b0aa685eb4ca1484c20cc8b (diff)
downloadcrawl-ref-3d5dc734227ba4b2309639e6575eb55e657ecb82.tar.gz
crawl-ref-3d5dc734227ba4b2309639e6575eb55e657ecb82.zip
Ignore existing clouds in hostiles-in-range checks (#8784)
You still can't target the spots with clouds, but you might want to aim at a nearby spot that a clouded monster is about to move to.
Diffstat (limited to 'crawl-ref/source/spl-util.cc')
-rw-r--r--crawl-ref/source/spl-util.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-util.cc b/crawl-ref/source/spl-util.cc
index 1efbef1520..d5f804d9fe 100644
--- a/crawl-ref/source/spl-util.cc
+++ b/crawl-ref/source/spl-util.cc
@@ -1234,6 +1234,9 @@ bool spell_no_hostile_in_range(spell_type spell, bool rod)
case SPELL_HOLY_BREATH:
{
targetter_cloud tgt(&you, range);
+ // Accept monsters that are in clouds for the hostiles-in-range check
+ // (not for actual targetting).
+ tgt.avoid_clouds = false;
for (radius_iterator ri(you.pos(), range, C_ROUND, LOS_NO_TRANS);
ri; ++ri)
{