From 317b5be68b9a0bb5352a2e756fe956cf9aed986b Mon Sep 17 00:00:00 2001 From: haranp Date: Sun, 14 Sep 2008 18:17:30 +0000 Subject: Secondary unarmed attacks should wake sleeping monsters. [2107519] git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6928 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/fight.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/fight.cc') diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc index f9b7c40db2..83e44d4aa8 100644 --- a/crawl-ref/source/fight.cc +++ b/crawl-ref/source/fight.cc @@ -1161,6 +1161,9 @@ bool melee_attack::player_aux_unarmed() if (!ely_block && (to_hit >= def->ev || one_chance_in(30))) { + // Upset the monster. + behaviour_event(def, ME_WHACK, MHITYOU); + if (attack_shield_blocked(true)) continue; if (player_apply_aux_unarmed()) @@ -1530,7 +1533,7 @@ int melee_attack::player_stab(int damage) if (stab_bonus) { - // Lets make sure we have some damage to work with... + // Let's make sure we have some damage to work with... damage = std::max(1, damage); if (mons_is_sleeping(def)) -- cgit v1.2.3-54-g00ecf