summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monster.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-08 15:47:06 +0300
committerVsevolod Kozlov <zaba@thorium.homeunix.org>2009-11-08 15:47:06 +0300
commit63ee0e170c497f07f8b333e1611c3bc02e4e9fc2 (patch)
treee5169282639452ec1db9605b0e9ff22b96fd1212 /crawl-ref/source/monster.cc
parentb6b37f3ffdff725c0ce94b42b6f6875fecd62e2e (diff)
downloadcrawl-ref-63ee0e170c497f07f8b333e1611c3bc02e4e9fc2.tar.gz
crawl-ref-63ee0e170c497f07f8b333e1611c3bc02e4e9fc2.zip
Replace mons_is_petrifying with monsters::petrifying.
Diffstat (limited to 'crawl-ref/source/monster.cc')
-rw-r--r--crawl-ref/source/monster.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc
index b088be9a35..ed32a9e951 100644
--- a/crawl-ref/source/monster.cc
+++ b/crawl-ref/source/monster.cc
@@ -2819,6 +2819,11 @@ bool monsters::petrified() const
return has_ench(ENCH_PETRIFIED);
}
+bool monsters::petrifying() const
+{
+ return has_ench(ENCH_PETRIFYING);
+}
+
bool monsters::friendly() const
{
return (attitude == ATT_FRIENDLY || has_ench(ENCH_CHARM));