diff options
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r-- | crawl-ref/source/itemprop.cc | 12 |
1 files changed, 12 insertions, 0 deletions
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.", |