summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ranged_attack.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-05-21 10:56:06 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-05-21 10:57:20 -0600
commite03bf5a60aae380c7f94aa9309767073eec073ab (patch)
treea4622ad6e36af59c8275a384baeaf0984198a8fe /crawl-ref/source/ranged_attack.cc
parent20a0feea4c139e3bbc133b1b3fbf01ef8ec065d2 (diff)
downloadcrawl-ref-e03bf5a60aae380c7f94aa9309767073eec073ab.tar.gz
crawl-ref-e03bf5a60aae380c7f94aa9309767073eec073ab.zip
Let needles of frenzy wake up and thus affect sleeping enemies.
Not that they benefit from blowgun stabbing; it just seems odd.
Diffstat (limited to 'crawl-ref/source/ranged_attack.cc')
-rw-r--r--crawl-ref/source/ranged_attack.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/ranged_attack.cc b/crawl-ref/source/ranged_attack.cc
index b4a4342aa5..71fc12240e 100644
--- a/crawl-ref/source/ranged_attack.cc
+++ b/crawl-ref/source/ranged_attack.cc
@@ -777,7 +777,13 @@ bool ranged_attack::apply_missile_brand()
if (!blowgun_check(brand))
break;
if (defender->is_monster())
- defender->as_monster()->go_frenzy(attacker);
+ {
+ monster* mon = defender->as_monster();
+ // Wake up the monster so that it can frenzy.
+ if (mon->behaviour == BEH_SLEEP)
+ mon->behaviour = BEH_WANDER;
+ mon->go_frenzy(attacker);
+ }
else
defender->go_berserk(false);
break;