summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-21 01:01:43 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-21 01:01:43 +0000
commita84ea40a942fa25720d2484dabd8ed33cdf5582e (patch)
tree223945c40a4bb1d7081fd57d5f5d8f4f44f5703a /crawl-ref
parent498c51d938cc76fc5f2a1b46a4618603da9f3f94 (diff)
downloadcrawl-ref-a84ea40a942fa25720d2484dabd8ed33cdf5582e.tar.gz
crawl-ref-a84ea40a942fa25720d2484dabd8ed33cdf5582e.zip
Check more efficiently for monsters eligible to be promoted to priests.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3777 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/religion.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 5c19fc258b..0f64682178 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -789,9 +789,12 @@ void bless_follower(god_type god,
const char *result;
// 5% chance: Turn a monster into a priestly monster, if possible.
- // This is currently only used for Beogh.
- if (god == GOD_BEOGH && one_chance_in(20) && promote_to_priest(mon))
+ // This is currently only used for Beogh and ordinary orcs.
+ if (god == GOD_BEOGH && one_chance_in(20) && mon->type == MONS_ORC)
+ {
+ promote_to_priest(mon);
result = "priesthood";
+ }
// 95% chance: full healing.
else
{