Mirroar / TopFit

A World of Warcraft Addon that helps you with Equipment choices.
http://www.wowinterface.com/downloads/info16177-TopFit.html
9 stars 6 forks source link

Retribution paladin issue #77

Open Thrumbar opened 6 years ago

Thrumbar commented 6 years ago

My Retribution Paladin keep changing his 2h weapon for a 1h and shield....

Malkymder commented 6 years ago

What i did is ignore shields when retribution paladin is the following in set.class.lua since we should not use shields as ret paladins anyhow

`function Set:IsOnehandedWeapon(item)

local itemTable = type(item) == 'table' and item or TopFit:GetCachedItem(item)
if not itemTable then return nil end
local currSpec     = GetSpecialization()
classID = UnitClass("player")
if classID == "Paladin" and currSpec == 3 and tContains(itemTable.equipLocationsByType, INVSLOT_OFFHAND) then -- Paladin Retribution
    return false
end`