summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc21
1 files changed, 14 insertions, 7 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 146130a54e..7b46f788d3 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -834,14 +834,21 @@ std::string melee_attack::special_attack_punctuation()
std::string melee_attack::attack_strength_punctuation()
{
- if (damage_done < HIT_WEAK)
- return ".";
- else if (damage_done < HIT_MED)
- return "!";
- else if (damage_done < HIT_STRONG)
- return "!!";
+ if (attacker->atype() == ACT_PLAYER)
+ {
+ if (damage_done < HIT_WEAK)
+ return ".";
+ else if (damage_done < HIT_MED)
+ return "!";
+ else if (damage_done < HIT_STRONG)
+ return "!!";
+ else
+ return "!!!";
+ }
else
- return "!!!";
+ {
+ return (damage_done < HIT_WEAK? "." : "!");
+ }
}
void melee_attack::player_announce_hit()