diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-05 03:29:46 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-05 03:29:46 +0000 |
commit | b89e0d55ffd04267b0f7fdfaf9cf703dca7a21ab (patch) | |
tree | a3a860b1ef4fa1ab5b154f5e7958e1aa768af08e /crawl-ref | |
parent | a1daed8d5910d6fa5864eb702489a19c1f826278 (diff) | |
download | crawl-ref-b89e0d55ffd04267b0f7fdfaf9cf703dca7a21ab.tar.gz crawl-ref-b89e0d55ffd04267b0f7fdfaf9cf703dca7a21ab.zip |
For the purposes of spell messages, self-aimed invisible beams aren't
considered to be targeted, to prevent lots of "The monster gestures at itself"
messages.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8229 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r-- | crawl-ref/source/mstuff2.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/mstuff2.cc b/crawl-ref/source/mstuff2.cc index bb63f972fe..76adfe9066 100644 --- a/crawl-ref/source/mstuff2.cc +++ b/crawl-ref/source/mstuff2.cc @@ -634,7 +634,8 @@ void mons_cast_noise(monsters *monster, bolt &pbolt, spell_type spell_cast) && pbolt.name[0] != '0' && !pbolt.is_enchantment(); - const bool targeted = flags & SPFLAG_TARGETING_MASK; + const bool targeted = (flags & SPFLAG_TARGETING_MASK) + && (pbolt.target != monster->pos() || visible_beam); if (targeted) { |