From e19beca3feeac78a24924fe50ea2eb099cb57fb0 Mon Sep 17 00:00:00 2001 From: dolorous Date: Thu, 12 Feb 2009 20:12:06 +0000 Subject: Fix inverted logic that was allowing ranged weapons to have the +Rage property. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9053 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/randart.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/randart.cc') diff --git a/crawl-ref/source/randart.cc b/crawl-ref/source/randart.cc index a51d7fab72..c076adfdeb 100644 --- a/crawl-ref/source/randart.cc +++ b/crawl-ref/source/randart.cc @@ -1003,7 +1003,7 @@ void static _get_randart_properties(const item_def &item, // go berserk if (!done_powers && one_chance_in(10) - && (aclass != OBJ_WEAPONS || is_range_weapon(item)) + && (aclass != OBJ_WEAPONS || !is_range_weapon(item)) && (aclass != OBJ_JEWELLERY || atype != AMU_RAGE)) { proprt[RAP_BERSERK] = 1; -- cgit v1.2.3-54-g00ecf