diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-07 04:05:12 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-07 04:05:12 +0000 |
commit | 9abfa46a13959b93ab876b705c62e9139389ab73 (patch) | |
tree | d3c34566a295c48ed5aa4991d570ee19299cc2db /crawl-ref/source/spells3.cc | |
parent | e479108ca3133e9f621bd516856a31f36be16f8c (diff) | |
download | crawl-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.cc | 4 |
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) |