summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-abil.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-12-10 00:58:34 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-12-10 01:00:10 +0100
commit33369e6dae1231e9b38da2c45ab59e670dbe440a (patch)
tree96ad579ede9d27b5c7625ba404b459b3fbece2b6 /crawl-ref/source/mon-abil.cc
parentb8f3c183df87ee55833ab561fa12ed324da5a913 (diff)
downloadcrawl-ref-33369e6dae1231e9b38da2c45ab59e670dbe440a.tar.gz
crawl-ref-33369e6dae1231e9b38da2c45ab59e670dbe440a.zip
If you can't move (paralyzed or slept), you won't move towards sirens.
Diffstat (limited to 'crawl-ref/source/mon-abil.cc')
-rw-r--r--crawl-ref/source/mon-abil.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-abil.cc b/crawl-ref/source/mon-abil.cc
index ade5feba1f..29b7d169e6 100644
--- a/crawl-ref/source/mon-abil.cc
+++ b/crawl-ref/source/mon-abil.cc
@@ -463,7 +463,8 @@ bool slime_split_merge(monsters *thing)
// Returns true if you resist the siren's call.
static bool _siren_movement_effect(const monsters *monster)
{
- bool do_resist = (you.attribute[ATTR_HELD] || you.check_res_magic(70));
+ bool do_resist = (you.attribute[ATTR_HELD] || you.check_res_magic(70)
+ || you.cannot_act() || you.asleep());
if (!do_resist)
{