function TemporaryEnchantFrame_Hide
Lua Code:
function TemporaryEnchantFrame_Hide()
if ( BuffFrame.numEnchants > 0 ) then
BuffFrame.numEnchants = 0;
BuffFrame_Update();
end
TempEnchant1:Hide();
TempEnchant1Duration:Hide();
TempEnchant2:Hide();
TempEnchant2Duration:Hide();
end
https://github.com/tomrus88/Blizzard...Frame.lua#L346
The function is missing the third button.
https://github.com/tomrus88/Blizzard...Frame.xml#L149
When the player is in a vehicle the TempEnchant3 button will pop up because TemporaryEnchantFrame_Update() is not called.
Function should look like this
Lua Code:
function TemporaryEnchantFrame_Hide()
if ( BuffFrame.numEnchants > 0 ) then
BuffFrame.numEnchants = 0;
BuffFrame_Update();
end
--Hide enchants
for i=1, NUM_TEMP_ENCHANT_FRAMES do
_G["TempEnchant"..i]:Hide();
_G["TempEnchant"..i.."Duration"]:Hide();
end
end