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.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 417753447a..66bcf8cc8c 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -865,7 +865,9 @@ bool melee_attack::player_attack()
}
// Always upset monster regardless of damage.
- behaviour_event(defender_as_monster(), ME_WHACK, MHITYOU);
+ // However, successful stabs inhibit shouting.
+ behaviour_event(defender_as_monster(), ME_WHACK, MHITYOU,
+ coord_def(), !stab_attempt);
if (damage_done > 0
&& !defender->is_summoned()