summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/randart.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-12 20:12:06 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-12 20:12:06 +0000
commite19beca3feeac78a24924fe50ea2eb099cb57fb0 (patch)
treef340ab7f3035abbd16c9fb876c3070c635a2d0a3 /crawl-ref/source/randart.cc
parenta6541942ada2a3bd5810eb4e86e635041512865f (diff)
downloadcrawl-ref-e19beca3feeac78a24924fe50ea2eb099cb57fb0.tar.gz
crawl-ref-e19beca3feeac78a24924fe50ea2eb099cb57fb0.zip
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
Diffstat (limited to 'crawl-ref/source/randart.cc')
-rw-r--r--crawl-ref/source/randart.cc2
1 files changed, 1 insertions, 1 deletions
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;