summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells3.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-07 04:05:12 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-07 04:05:12 +0000
commit9abfa46a13959b93ab876b705c62e9139389ab73 (patch)
treed3c34566a295c48ed5aa4991d570ee19299cc2db /crawl-ref/source/spells3.cc
parente479108ca3133e9f621bd516856a31f36be16f8c (diff)
downloadcrawl-ref-9abfa46a13959b93ab876b705c62e9139389ab73.tar.gz
crawl-ref-9abfa46a13959b93ab876b705c62e9139389ab73.zip
In equip_undead(), don't equip the undead with holy items.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8291 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells3.cc')
-rw-r--r--crawl-ref/source/spells3.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/spells3.cc b/crawl-ref/source/spells3.cc
index 293a1995f5..2f2cd1d7d4 100644
--- a/crawl-ref/source/spells3.cc
+++ b/crawl-ref/source/spells3.cc
@@ -709,6 +709,10 @@ static void _equip_undead(const coord_def &a, int corps, int monster,
return;
}
+ // Don't equip the undead with holy items.
+ if (is_holy_item(item))
+ continue;
+
mon_inv_type mslot;
switch (item.base_type)