summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-abil.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-05-31 23:53:57 -0400
committerNeil Moore <neil@s-z.org>2014-05-31 23:53:57 -0400
commit66f8c19131f0a8c99170067a8b0765bc22cf7b3e (patch)
tree0d3e544212507337942088a3fac789a60ed75ad9 /crawl-ref/source/mon-abil.cc
parent1c26d996b4be436285edc2092e1282da8cf0ec13 (diff)
downloadcrawl-ref-66f8c19131f0a8c99170067a8b0765bc22cf7b3e.tar.gz
crawl-ref-66f8c19131f0a8c99170067a8b0765bc22cf7b3e.zip
Don't crash on time step while siren-mesmerised (#8546)
Diffstat (limited to 'crawl-ref/source/mon-abil.cc')
-rw-r--r--crawl-ref/source/mon-abil.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/mon-abil.cc b/crawl-ref/source/mon-abil.cc
index e1ae17a2b0..8d3a6f242c 100644
--- a/crawl-ref/source/mon-abil.cc
+++ b/crawl-ref/source/mon-abil.cc
@@ -1003,6 +1003,7 @@ static bool _will_starcursed_scream(monster* mon)
static bool _siren_movement_effect(const monster* mons)
{
bool do_resist = (you.attribute[ATTR_HELD]
+ || you.duration[DUR_TIME_STEP]
|| you.cannot_act()
|| you.clarity()
|| you.is_stationary());