summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/item_use.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-10 21:26:29 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-10 22:04:09 -0600
commitaf420e351770b201f4d77d1892169b4111727c91 (patch)
tree0c7d51c3c2bd5fd6fc4f79b5124cd053de4cc566 /crawl-ref/source/item_use.cc
parent42876e1c49d03e594d7d129bd96fd9874ebe0106 (diff)
downloadcrawl-ref-af420e351770b201f4d77d1892169b4111727c91.tar.gz
crawl-ref-af420e351770b201f4d77d1892169b4111727c91.zip
Replace actor::is_unholy() with actor::undead_or_demonic().
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r--crawl-ref/source/item_use.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index 82b625cfe1..8214497c93 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -151,7 +151,7 @@ bool can_wield(item_def *weapon, bool say_reason,
return (false);
}
- if (you.is_unholy() && is_holy_item(*weapon))
+ if (you.undead_or_demonic() && is_holy_item(*weapon))
{
if (say_reason)
{
@@ -1750,7 +1750,7 @@ static bool _item_penetrates_victim(const bolt &beam, const actor *victim,
static bool _silver_damages_victim(bolt &beam, actor* victim, int &dmg,
std::string &dmg_msg)
{
- if (victim->is_unholy() || victim->is_chaotic())
+ if (victim->undead_or_demonic() || victim->is_chaotic())
{
dmg *= 2;