diff options
author | Charles Otto <ottochar@gmail.com> | 2009-10-06 22:27:07 -0400 |
---|---|---|
committer | Charles Otto <ottochar@gmail.com> | 2009-10-06 22:31:25 -0400 |
commit | c2c25b5eaa191b0d26aee47359949093367154b9 (patch) | |
tree | 6ac6a73ff6053f17fce2e66e8e441978c2729d36 /crawl-ref/source/spl-cast.cc | |
parent | 0e2154d50e2de944bb1495b6ad4a62112ee97f03 (diff) | |
download | crawl-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-cast.cc')
-rw-r--r-- | crawl-ref/source/spl-cast.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index 9c86bd0e9b..5add5f332e 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -1175,7 +1175,7 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail) if ((flags & SPFLAG_TARGETTING_MASK) && spell != SPELL_PORTAL_PROJECTILE) { targ_mode_type targ = - (testbits(flags, SPFLAG_HELPFUL) ? TARG_FRIEND : TARG_ENEMY); + (testbits(flags, SPFLAG_HELPFUL) ? TARG_FRIEND : TARG_HOSTILE); if (testbits(flags, SPFLAG_NEUTRAL)) targ = TARG_ANY; |