From d30d971cda3c85c5a6f701f90224fe0c139e52ba Mon Sep 17 00:00:00 2001 From: Parnic Date: Sat, 22 Nov 2014 01:48:50 -0600 Subject: [PATCH] Updated with new return values for GetWeaponEnchantInfo in 6.0 (ticket #183 - thanks slippycheeze!) --- IceHUD.lua | 2 +- modules/CustomBar.lua | 2 +- modules/PlayerInfo.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/IceHUD.lua b/IceHUD.lua index 33164a3..5482b84 100644 --- a/IceHUD.lua +++ b/IceHUD.lua @@ -377,7 +377,7 @@ function IceHUD:GetAuraCount(auraType, unit, ability, onlyMine, matchByName) end 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() if unit == "main hand weapon" and hasMainHandEnchant then diff --git a/modules/CustomBar.lua b/modules/CustomBar.lua index 36b2989..9daebc3 100644 --- a/modules/CustomBar.lua +++ b/modules/CustomBar.lua @@ -619,7 +619,7 @@ function IceCustomBar.prototype:GetAuraDuration(unitName, buffName) end 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() if unitName == "main hand weapon" and hasMainHandEnchant then diff --git a/modules/PlayerInfo.lua b/modules/PlayerInfo.lua index a0b0de6..59aa28a 100644 --- a/modules/PlayerInfo.lua +++ b/modules/PlayerInfo.lua @@ -141,7 +141,7 @@ function PlayerInfo.prototype:UpdateBuffs(unit, fromRepeated) PlayerInfo.super.prototype.UpdateBuffs(self) end - local hasMainHandEnchant, mainHandExpiration, mainHandCharges, hasOffHandEnchant, offHandExpiration, offHandCharges + local hasMainHandEnchant, mainHandExpiration, mainHandCharges, mainHandEnchantID, hasOffHandEnchant, offHandExpiration, offHandCharges, offHandEnchantID = GetWeaponEnchantInfo() local startingNum = 0