summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/fight.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-27 15:37:59 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-27 15:37:59 +0000
commitf3ea3473859e35a5d232c1a075af8af2646867a1 (patch)
tree7f36fe532d4ff9f50564968a1f078a44735155a6 /crawl-ref/source/fight.cc
parent5575ae2b4e56f21fbaf90e591b9e96623c902cb2 (diff)
downloadcrawl-ref-f3ea3473859e35a5d232c1a075af8af2646867a1.tar.gz
crawl-ref-f3ea3473859e35a5d232c1a075af8af2646867a1.zip
Refix quarterstaff damage fix.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1384 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/fight.cc')
-rw-r--r--crawl-ref/source/fight.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/crawl-ref/source/fight.cc b/crawl-ref/source/fight.cc
index 6f47554dea..a1cd6669b7 100644
--- a/crawl-ref/source/fight.cc
+++ b/crawl-ref/source/fight.cc
@@ -2427,8 +2427,12 @@ int melee_attack::player_calc_base_weapon_damage()
// Quarterstaves can be wielded with a worn shield, but are much
// less effective.
- if (shield && hands_reqd(*weapon, player_size()) == HANDS_TWO)
- damage /= 3;
+ if (shield && weapon->base_type == OBJ_WEAPONS
+ && weapon->sub_type == WPN_QUARTERSTAFF
+ && hands_reqd(*weapon, player_size()) == HANDS_HALF)
+ {
+ damage /= 2;
+ }
return (damage);
}