mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
Updated with new return values for GetWeaponEnchantInfo in 6.0 (ticket #183 - thanks slippycheeze!)
This commit is contained in:
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user