summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-29 05:15:57 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-09-29 05:15:57 +0000
commit881660c90f36bd39411a50834943fb564935e454 (patch)
tree05cc8992e40d314e2254ba4c0ebaaf5b4c9af4c3
parent7a518ef227f349cc62403bdbfd0b115cbf826a46 (diff)
downloadcrawl-ref-881660c90f36bd39411a50834943fb564935e454.tar.gz
crawl-ref-881660c90f36bd39411a50834943fb564935e454.zip
Ensure again that a weapon's curse status is always known after wielding
it, as, after r6787, it sometimes wouldn't if you knew the weapon's ego type (from e.g. being hit by the weapon if it was in a monster's hands before). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7062 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/item_use.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc
index fc809cbb5c..ab1fc8e335 100644
--- a/crawl-ref/source/item_use.cc
+++ b/crawl-ref/source/item_use.cc
@@ -772,6 +772,9 @@ void wield_effects(int item_wield_2, bool showMsgs)
else
xom_is_stimulated(64);
}
+
+ // Give curse status when wielded.
+ set_ident_flags( item, ISFLAG_KNOW_CURSE );
break;
}
default: