summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-22 21:21:48 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-22 21:21:48 +0000
commit1660ba3a383826752748913c58c2694f24be64d7 (patch)
tree7c622b4a969c4cce16124d2f98ea928e09b2be14 /crawl-ref/source/fight.cc
parenta3a71df01ff37e62f81687a9ce4c63ffbff3af80 (diff)
downloadcrawl-ref-1660ba3a383826752748913c58c2694f24be64d7.tar.gz
crawl-ref-1660ba3a383826752748913c58c2694f24be64d7.zip
Special damage messages were being produced for out-of-view combat, fixed
(jarpiain). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1487 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 79f1946632..80decc8bd1 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -1386,7 +1386,7 @@ void melee_attack::calc_elemental_brand_damage(
{
special_damage = resist_adjust_damage(res, random2(damage_done) / 2 + 1);
- if (special_damage > 0 && verb)
+ if (special_damage > 0 && verb && needs_message)
{
special_damage_message = make_stringf(
"%s %s %s%s",