diff options
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r-- | crawl-ref/source/spl-cast.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index c2cbaa6971..6b4c21bd08 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -1258,9 +1258,13 @@ spret_type your_spells(spell_type spell, int powc, bool allow_fail) const bool normal_cast = crawl_state.prev_cmd == CMD_CAST_SPELL && god == GOD_NO_GOD; + const int loudness = spell_noise(spell); + const bool sound_at_caster = !(flags & SPFLAG_TARGETTING_MASK); + // Make some noise if it's actually the player casting. + // NOTE: zappy() sets up noise for beams. if (god == GOD_NO_GOD) - noisy(spell_noise(spell), you.pos()); + noisy(sound_at_caster ? loudness : 1, you.pos()); if (allow_fail) { |