diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-08 15:47:06 +0300 |
---|---|---|
committer | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-11-08 15:47:06 +0300 |
commit | 63ee0e170c497f07f8b333e1611c3bc02e4e9fc2 (patch) | |
tree | e5169282639452ec1db9605b0e9ff22b96fd1212 /crawl-ref/source/mon-util.cc | |
parent | b6b37f3ffdff725c0ce94b42b6f6875fecd62e2e (diff) | |
download | crawl-ref-63ee0e170c497f07f8b333e1611c3bc02e4e9fc2.tar.gz crawl-ref-63ee0e170c497f07f8b333e1611c3bc02e4e9fc2.zip |
Replace mons_is_petrifying with monsters::petrifying.
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r-- | crawl-ref/source/mon-util.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index f4b182bd1b..f54a6e09e1 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -1938,20 +1938,15 @@ mon_attitude_type mons_attitude(const monsters *m) return ATT_HOSTILE; } -bool mons_is_petrifying(const monsters *m) -{ - return (m->has_ench(ENCH_PETRIFYING)); -} - bool mons_cannot_act(const monsters *m) { return (m->paralysed() - || m->petrified() && !mons_is_petrifying(m)); + || m->petrified() && !m->petrifying()); } bool mons_cannot_move(const monsters *m) { - return (mons_cannot_act(m) || mons_is_petrifying(m)); + return (mons_cannot_act(m) || m->petrifying()); } bool mons_is_confused(const monsters *m, bool class_too) |