summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-util.h
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/spl-util.h
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/spl-util.h')
-rw-r--r--crawl-ref/source/spl-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-util.h b/crawl-ref/source/spl-util.h
index 4c33f33e82..6d0d66d980 100644
--- a/crawl-ref/source/spl-util.h
+++ b/crawl-ref/source/spl-util.h
@@ -109,7 +109,7 @@ void apply_area_cloud(cloud_func func, const coord_def& where,
bool spell_direction( dist &spelld, bolt &pbolt,
targetting_type restrict = DIR_NONE,
- targ_mode_type mode = TARG_ENEMY,
+ targ_mode_type mode = TARG_HOSTILE,
// pbolt.range if applicable, otherwise LOS_RADIUS
int range = 0,
bool needs_path = true, bool may_target_monster = true,