summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-16 22:07:48 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-16 22:07:48 +0000
commitc3eff4baabd161aa07c65d05941c183902d90342 (patch)
treefcff30d1ebadd949bc76cc523e0890635993d10c /crawl-ref/source/itemprop.cc
parentf8f47fa7b074c5fd1fe6af27e1aaa10f8e6bb15d (diff)
downloadcrawl-ref-c3eff4baabd161aa07c65d05941c183902d90342.tar.gz
crawl-ref-c3eff4baabd161aa07c65d05941c183902d90342.zip
Don't allow weapons converted by TSO to be racial anymore.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4273 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r--crawl-ref/source/itemprop.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index 5fae319d04..62117fb904 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -666,7 +666,7 @@ void set_equip_race( item_def &item, unsigned long flags )
|| item.sub_type == WPN_DEMON_BLADE
|| item.sub_type == WPN_DEMON_WHIP
|| item.sub_type == WPN_DEMON_TRIDENT
- || item.sub_type == WPN_BLESSED_BLADE)
+ || is_blessed(item))
{
return;
}
@@ -1740,6 +1740,9 @@ bool normal2good( item_def &item, bool allow_blessed )
break;
}
+ if (is_blessed(item))
+ item.flags &= ~ISFLAG_RACIAL_MASK;
+
return (true);
} // end normal2good()