mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- drycoded possible fix for a reported error
This commit is contained in:
@ -554,6 +554,10 @@ end
|
|||||||
-- 'Protected' methods --------------------------------------------------------
|
-- 'Protected' methods --------------------------------------------------------
|
||||||
|
|
||||||
function IceCustomBar.prototype:GetAuraDuration(unitName, buffName)
|
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
|
if unitName == "main hand weapon" or unitName == "off hand weapon" then
|
||||||
local hasMainHandEnchant, mainHandExpiration, mainHandCharges, hasOffHandEnchant, offHandExpiration, offHandCharges
|
local hasMainHandEnchant, mainHandExpiration, mainHandCharges, hasOffHandEnchant, offHandExpiration, offHandCharges
|
||||||
= GetWeaponEnchantInfo()
|
= GetWeaponEnchantInfo()
|
||||||
|
Reference in New Issue
Block a user