From 70e2038c42f1a232799922bc0c5256d5a36985d1 Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 13 Dec 2007 23:25:44 +0000 Subject: Actually allow elven whips in set_equip_race(). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3060 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/itemprop.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/itemprop.cc') diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index b63061565d..318cfa7207 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -676,7 +676,8 @@ void set_equip_race( item_def &item, unsigned long flags ) switch (item.base_type) { case OBJ_WEAPONS: - if (weapon_skill(item) == SK_MACES_FLAILS + if ((weapon_skill(item) == SK_MACES_FLAILS + && item.sub_type != WPN_WHIP) || weapon_skill(item) == SK_AXES || (weapon_skill(item) == SK_POLEARMS && item.sub_type != WPN_SPEAR -- cgit v1.2.3-54-g00ecf