summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/fight.cc3
-rw-r--r--crawl-ref/source/item_use.cc8
2 files changed, 6 insertions, 5 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index afb3e9dd43..d196cf824c 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -1756,8 +1756,7 @@ void melee_attack::player_check_weapon_effects()
{
if (is_holy_item(*weapon))
did_god_conduct(DID_HOLY, 1);
-
- if (is_demonic(*weapon))
+ else if (is_demonic(*weapon))
did_god_conduct(DID_UNHOLY, 1);
}
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index a08ccee3ba..7bce87d93b 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -527,10 +527,12 @@ void wield_effects(int item_wield_2, bool showMsgs)
case OBJ_WEAPONS:
{
- if (is_evil_item(item) && is_good_god(you.religion))
+ if (showMsgs)
{
- if (showMsgs)
- mpr("You really shouldn't be using a nasty item like this.");
+ if (is_holy_item(item) && you.religion == GOD_YREDELEMNUL)
+ mpr("You really shouldn't be using a holy item like this.");
+ else if (is_evil_item(item) && is_good_god(you.religion))
+ mpr("You really shouldn't be using an evil item like this.");
}
const bool was_known = item_type_known(item);