Simple iLevel

Simple iLevel

1M Downloads

wrong ilvl when using crossbow (and possible guns)

VTTR opened this issue ยท 2 comments

commented

hey :)
it seems that there is a bug in the calculation of the item level if I'm (as a hunter) uses a crossbow. I think I've found the location.

if i == INVSLOT_MAINHAND and not items[INVSLOT_OFFHAND] then
    if itemEquipLoc == "INVTYPE_2HWEAPON" or itemEquipLoc == "INVTYPE_RANGED" then
        totalScore = totalScore + effectiveILvl;
        
        self:Debug("GearSum", "MissingOffhand", "Mainhand * 2", effectiveILvl, itemEquipLoc);
    else
        self:Debug("GearSum", "MissingOffhand", "Mainhand is 1h", effectiveILvl, itemEquipLoc);
    end
else
    totalScore = totalScore + effectiveILvl;
end

according to this it should also include INVTYPE_RANGEDRIGHT

debug output:

[22:57:17] SIL Debug:  GearSum MissingOffhand Mainhand is 1h 184 INVTYPE_RANGEDRIGHT
[22:57:17] SIL Debug:  SetScore Berryl 167.5 15 0

crossbow-ilvl

commented

+1

commented

I am also noticing this bug whenever using a crossbow on my hunter.