GearScoreClassic+

GearScoreClassic+

119k Downloads

Hunter One-hand GS calculation missing

TormDeltest opened this issue ยท 5 comments

commented

Hello, I have been reviewing the code and I noticed an issue with Custom rules for specific classes section (line 143). It focuses on Hunters for obvious reasons. You have special rules for all types of weapons except for One-hand weapons. Therefore One-hand weapon has double gearscore than Main-hand weapon.

Adding this code to line 148 fixed the issue.

    elseif itemEquipLoc == "INVTYPE_WEAPON" then
        return slotModifier  - 0.5
commented

On the similar note: Item's GS value on tooltip is not adjusted for hunters. It is calculated as if any other classes and is not reflecting the Custom rules for specific classes.

commented

Yes, this is a nice find and i will fix it.
As for the second thing: What you could do is apply the custom rules based on the players class sure.
But then a wand would have more gs if a hunter looks at it vs when a priest looks at it (which isnt really a problem)
I guess ill do that sure.
Thank you!

commented

I wanna note that this was just a on the fly decision to reduce melee scaling in favor of ranged weapon scaling. If you think something else applies better feel free to submit a pr or share your opinion here.
I never played a hunter ;)...

commented

I would say the GS increase for Ranged Weapons for Hunters and lowering the GS for melee weapons was a good ideas. But now with the rise of the Melee Hunters I'm not so sure anymore. Melee Hunters are basically Rogues. So they value their melee weapons more than Ranged.

The addon as far as I can say cannot differentiate between Melee Hunter and Range Hunter unless you add some kind of check like what Runes the Hunter is using or whether they are spec'ed into Savage Strikes talents (it is a Melee Hunter giveaway).

And regarding the Hunters and Wands, I don't think too many Hunters will be looking at Wands. And argument that they will see different GS for Wand than other players? Well Hunters already see different GS for Weapons as they scale differently for them. I would go for it.

commented

I downloaded the update and I can confirm the GS shows correctly now for all types of weapons. And Tooltip GS info contains correct GS value for Hunters! :)