From 5d78f4fbac5120ebee12c73624ded022abc3c933 Mon Sep 17 00:00:00 2001 From: Vsevolod Kozlov Date: Sun, 8 Nov 2009 15:57:39 +0300 Subject: Replace mons_cannot_act with monsters::cannot_act. --- crawl-ref/source/monster.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/monster.cc') diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc index 9327548e89..43dfcb65ce 100644 --- a/crawl-ref/source/monster.cc +++ b/crawl-ref/source/monster.cc @@ -2790,7 +2790,8 @@ bool monsters::paralysed() const bool monsters::cannot_act() const { - return (mons_cannot_act(this)); + return (paralysed() + || petrified() && !petrifying()); } bool monsters::cannot_move() const @@ -4595,8 +4596,7 @@ void monsters::apply_enchantment(const mon_enchant &me) case ENCH_HELD: { - if (mons_is_stationary(this) || mons_cannot_act(this) - || asleep()) + if (mons_is_stationary(this) || cannot_act() || asleep()) { break; } -- cgit v1.2.3-54-g00ecf