diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-09-14 18:17:30 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-09-14 18:17:30 +0000 |
commit | 317b5be68b9a0bb5352a2e756fe956cf9aed986b (patch) | |
tree | 49719ef599744dd05bb6946c99676d5a811ae735 /crawl-ref/source/fight.cc | |
parent | 6b49a7c5c4056c1fc0f4518262b7fd8c024c8852 (diff) | |
download | crawl-ref-317b5be68b9a0bb5352a2e756fe956cf9aed986b.tar.gz crawl-ref-317b5be68b9a0bb5352a2e756fe956cf9aed986b.zip |
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
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r-- | crawl-ref/source/fight.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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)) |