summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mstuff2.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-09 08:01:31 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-09 08:01:31 +0000
commit3ce71fe4a73f6123c7f903805b60e5798ccef984 (patch)
treeae39cf59d206a034747165220df5cd09f473b50d /crawl-ref/source/mstuff2.cc
parentd16c36c47ff9608c427a46ad4c1dac6baa85b5d3 (diff)
downloadcrawl-ref-3ce71fe4a73f6123c7f903805b60e5798ccef984.tar.gz
crawl-ref-3ce71fe4a73f6123c7f903805b60e5798ccef984.zip
Go back to detecting priestly monsters by the flag instead of using a
function, as it'll be simpler in the long run. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5649 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/mstuff2.cc')
-rw-r--r--crawl-ref/source/mstuff2.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/mstuff2.cc b/crawl-ref/source/mstuff2.cc
index 9f0f5d566f..e6aa5fbbb8 100644
--- a/crawl-ref/source/mstuff2.cc
+++ b/crawl-ref/source/mstuff2.cc
@@ -511,7 +511,8 @@ void mons_cast(monsters *monster, bolt &pbolt, spell_type spell_cast)
// XXX: Mark summoned creatures from priestly monsters as god gifts.
// Once monsters can worship gods (and, presumably, get invocation
// lists), this should no longer be needed.
- const unsigned flags = mons_is_priest(monster) ? MG_GOD_GIFT : 0;
+ const unsigned flags =
+ (mons_class_flag(monster->type, M_PRIEST)) ? MG_GOD_GIFT : 0;
#if DEBUG_DIAGNOSTICS
mprf(MSGCH_DIAGNOSTICS, "Mon #%d casts %s (#%d)",