Updated with new return values for GetWeaponEnchantInfo in 6.0 (ticket #183 - thanks slippycheeze!)

This commit is contained in:
Parnic
2014-11-22 01:48:50 -06:00
parent 1a62f6b33a
commit d30d971cda
3 changed files with 3 additions and 3 deletions

View File

@ -377,7 +377,7 @@ function IceHUD:GetAuraCount(auraType, unit, ability, onlyMine, matchByName)
end end
if unit == "main hand weapon" or unit == "off hand weapon" then if unit == "main hand weapon" or unit == "off hand weapon" then
local hasMainHandEnchant, mainHandExpiration, mainHandCharges, hasOffHandEnchant, offHandExpiration, offHandCharges local hasMainHandEnchant, mainHandExpiration, mainHandCharges, mainHandEnchantID, hasOffHandEnchant, offHandExpiration, offHandCharges, offHandEnchantID
= GetWeaponEnchantInfo() = GetWeaponEnchantInfo()
if unit == "main hand weapon" and hasMainHandEnchant then if unit == "main hand weapon" and hasMainHandEnchant then

View File

@ -619,7 +619,7 @@ function IceCustomBar.prototype:GetAuraDuration(unitName, buffName)
end end
if unitName == "main hand weapon" or unitName == "off hand weapon" then if unitName == "main hand weapon" or unitName == "off hand weapon" then
local hasMainHandEnchant, mainHandExpiration, mainHandCharges, hasOffHandEnchant, offHandExpiration, offHandCharges local hasMainHandEnchant, mainHandExpiration, mainHandCharges, mainHandEnchantID, hasOffHandEnchant, offHandExpiration, offHandCharges, offHandEnchantID
= GetWeaponEnchantInfo() = GetWeaponEnchantInfo()
if unitName == "main hand weapon" and hasMainHandEnchant then if unitName == "main hand weapon" and hasMainHandEnchant then

View File

@ -141,7 +141,7 @@ function PlayerInfo.prototype:UpdateBuffs(unit, fromRepeated)
PlayerInfo.super.prototype.UpdateBuffs(self) PlayerInfo.super.prototype.UpdateBuffs(self)
end end
local hasMainHandEnchant, mainHandExpiration, mainHandCharges, hasOffHandEnchant, offHandExpiration, offHandCharges local hasMainHandEnchant, mainHandExpiration, mainHandCharges, mainHandEnchantID, hasOffHandEnchant, offHandExpiration, offHandCharges, offHandEnchantID
= GetWeaponEnchantInfo() = GetWeaponEnchantInfo()
local startingNum = 0 local startingNum = 0