summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abl-show.cc
diff options
context:
space:
mode:
authorCharles Otto <ottochar@gmail.com>2009-10-06 22:27:07 -0400
committerCharles Otto <ottochar@gmail.com>2009-10-06 22:31:25 -0400
commitc2c25b5eaa191b0d26aee47359949093367154b9 (patch)
tree6ac6a73ff6053f17fce2e66e8e441978c2729d36 /crawl-ref/source/abl-show.cc
parent0e2154d50e2de944bb1495b6ad4a62112ee97f03 (diff)
downloadcrawl-ref-c2c25b5eaa191b0d26aee47359949093367154b9.tar.gz
crawl-ref-c2c25b5eaa191b0d26aee47359949093367154b9.zip
Implement FR 2872334 'don't auto-target neutrals' by replacing most uses of TARG_ENEMY with TARG_HOSTILE.
Diffstat (limited to 'crawl-ref/source/abl-show.cc')
-rw-r--r--crawl-ref/source/abl-show.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/abl-show.cc b/crawl-ref/source/abl-show.cc
index d7f9e6c996..6ab2430a3e 100644
--- a/crawl-ref/source/abl-show.cc
+++ b/crawl-ref/source/abl-show.cc
@@ -1304,8 +1304,8 @@ static bool _do_ability(const ability_def& abil)
const int pow = calc_spell_power(SPELL_DELAYED_FIREBALL, true);
const int fake_range = spell_range(SPELL_FIREBALL, pow, false);
- if (!spell_direction(spd, beam, DIR_NONE, TARG_ENEMY, fake_range))
- return (false);
+ if (!spell_direction(spd, beam, DIR_NONE, TARG_HOSTILE, fake_range))
+ return (false);
beam.range = spell_range(SPELL_FIREBALL, pow, true);
if (!fireball(pow, beam))