mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[11832] better check for twohand vs main&offhand case gearscore
Signed-off-by: Laise <fenrisse@gmail.com>
This commit is contained in:
parent
70a8a350d7
commit
3aca58520b
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11831"
|
||||
#define REVISION_NR "11832"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue