rofl, just realised I was getting confused with the mage portal addon itself. Not sure if they added or removed profession stuff.
Anyways,
you might want to try changing this block of code in that file:
Lua Code:
local function UpdateCooldown(self)
local TimeNow = GetTime();
local CooldownStart, CooldownDuration, CooldownEnabled = GetSpellCooldown(SpellName);
if ( not CooldownEnabled ) then return; end
if ( CooldownDuration == 0 ) then return; end
local DiffTime = TimeNow - CooldownStart;
local CooldownCounter = CooldownDuration - DiffTime;
CooldownCounter = math.floor(CooldownCounter);
if ( CooldownCounter > 0 ) then
self.Text:SetText(CooldownCounter);
else
self.Text:SetText("");
end
end
to
Lua Code:
local function UpdateCooldown(self)
>>>> if not Available then return end <<<<<
local TimeNow = GetTime();
local CooldownStart, CooldownDuration, CooldownEnabled = GetSpellCooldown(SpellName);
if ( not CooldownEnabled ) then return; end
if ( CooldownDuration == 0 ) then return; end
local DiffTime = TimeNow - CooldownStart;
local CooldownCounter = CooldownDuration - DiffTime;
CooldownCounter = math.floor(CooldownCounter);
if ( CooldownCounter > 0 ) then
self.Text:SetText(CooldownCounter);
else
self.Text:SetText("");
end
end
This way it should only try updating the cooldown if the ability is known to the player.