From 9abfa46a13959b93ab876b705c62e9139389ab73 Mon Sep 17 00:00:00 2001 From: dolorous Date: Wed, 7 Jan 2009 04:05:12 +0000 Subject: 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 --- crawl-ref/source/spells3.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/spells3.cc') 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) -- cgit v1.2.3-54-g00ecf