- drycoded possible fix for a reported error

This commit is contained in:
Parnic
2011-05-25 14:46:01 +00:00
parent 8ddbb97258
commit 47ce739caf

View File

@ -554,6 +554,10 @@ end
-- 'Protected' methods --------------------------------------------------------
function IceCustomBar.prototype:GetAuraDuration(unitName, buffName)
if not unitName or not buffName then
return nil
end
if unitName == "main hand weapon" or unitName == "off hand weapon" then
local hasMainHandEnchant, mainHandExpiration, mainHandCharges, hasOffHandEnchant, offHandExpiration, offHandCharges
= GetWeaponEnchantInfo()