From 995e9fc728b24c9dd5a821c6e9c490b3d4682177 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Wed, 12 Aug 2009 23:10:14 +0000 Subject: FR 2823234: Note getting the Blessed Blade right away FR 2433928: Holy wrath weapons cannot be cursed. The message could stand to be improved. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10530 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/itemprop.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'crawl-ref/source/itemprop.cc') diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index fc4548158c..ab3a066612 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -484,6 +484,18 @@ void do_curse_item( item_def &item, bool quiet ) if (item.flags & ISFLAG_CURSED) return; + // Holy weapons cannot be cursed. + if (item.base_type == OBJ_WEAPONS + && get_weapon_brand(item) == SPWPN_HOLY_WRATH) + { + if (!quiet) + { + mprf("Your %s glows golden for a moment.", + item.name(DESC_PLAIN).c_str()); + } + return; + } + if (!quiet) { mprf("Your %s glows black for a moment.", -- cgit v1.2.3-54-g00ecf