summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index fe1a1c8bdf..6881c556d0 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -144,8 +144,7 @@ bool can_wield(item_def *weapon, bool say_reason,
return (false);
}
- if ((you.is_undead || you.species == SP_DEMONSPAWN)
- && is_holy_item(*weapon))
+ if (player_is_unholy() && is_holy_item(*weapon))
{
if (say_reason)
{