diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-12 20:12:06 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-12 20:12:06 +0000 |
commit | e19beca3feeac78a24924fe50ea2eb099cb57fb0 (patch) | |
tree | f340ab7f3035abbd16c9fb876c3070c635a2d0a3 /crawl-ref/source/randart.cc | |
parent | a6541942ada2a3bd5810eb4e86e635041512865f (diff) | |
download | crawl-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.cc | 2 |
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; |