diff options
author | Adam Borowski <kilobyte@angband.pl> | 2009-12-10 00:58:34 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2009-12-10 01:00:10 +0100 |
commit | 33369e6dae1231e9b38da2c45ab59e670dbe440a (patch) | |
tree | 96ad579ede9d27b5c7625ba404b459b3fbece2b6 /crawl-ref/source/mon-abil.cc | |
parent | b8f3c183df87ee55833ab561fa12ed324da5a913 (diff) | |
download | crawl-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.cc | 3 |
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) { |