WoWInterface SVN CooldownIconsRevamped

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 146 to Rev 147
    Reverse comparison

Rev 146 → Rev 147

CooldownIcons_Revamped/Libs/LibCooldownIcons-1.0/LibCooldownIcons-1.0.lua
120,14 → 120,18
end
 
function lib:GetCooldownByCmd(cmd,watch)
if cmd=='spell' then
return GetSpellCooldown(tonumber(watch) or watch)
elseif cmd=='item' then
return GetItemCooldown(tonumber(watch) or watch)
elseif cmd=='flag' then
return GetInventoryItemCooldown("player", watch)
else
error(tostring(cmd)..' is an invalid Command')
if watch then
if cmd=='spell' then
return GetSpellCooldown(tonumber(watch) or watch)
elseif cmd=='item' then
return GetItemCooldown(tonumber(watch) or watch)
elseif cmd=='flag' then
return GetInventoryItemCooldown("player", watch)
else
error(tostring(cmd)..' is an invalid Command')
end
else
return 0,0,0
end
end