[11832] better check for twohand vs main&offhand case gearscore

Signed-off-by: Laise <fenrisse@gmail.com>
This commit is contained in:
pabzea 2011-10-18 09:00:57 +02:00 committed by Laise
parent 70a8a350d7
commit 3aca58520b
2 changed files with 2 additions and 2 deletions

View file

@ -23012,7 +23012,7 @@ uint32 Player::GetEquipGearScore(bool withBags, bool withBank)
uint32 sum = 0;
// check if 2h hand is higher level than main hand + off hand
if ((gearScore[EQUIPMENT_SLOT_MAINHAND] + gearScore[EQUIPMENT_SLOT_OFFHAND]) / 2 < twoHandScore)
if (gearScore[EQUIPMENT_SLOT_MAINHAND] + gearScore[EQUIPMENT_SLOT_OFFHAND] < twoHandScore * 2)
{
gearScore[EQUIPMENT_SLOT_OFFHAND] = 0; // off hand is ignored in calculations if 2h weapon has higher score
--count;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11831"
#define REVISION_NR "11832"
#endif // __REVISION_NR_H__