/
return; |
end |
local _, _, _, tocversion = GetBuildInfo() |
if tocversion >= 110000 then |
GetSpellTexture = function(spellID) |
if not spellID then |
return nil; |
end |
return C_Spell.GetSpellTexture(spellID); |
end |
end |
local texture = GetSpellTexture(spellId) |
icon:SetTexture(texture) |
Version History |
v4.6.0 |
- Fixes for 11.0.0 Spell API changes |
v4.5.9 |
- Updates for 11.0.0 patch |
v4.5.8 |
## Interface: 100207, 110000 |
## Title: Kharthus's Hunter Timers |
## Notes: Times hunter buffs/debuffs |
## Version: 4.5.9 |
## Version: 4.6.0 |
## DefaultState: Enabled |
## LoadOnDemand: 0 |
## IconTexture: 132127 |
KHT_VERSION = "v"..C_AddOns.GetAddOnMetadata("KHunterTimers", "Version") |
local _ |
local _, _, _, tocversion = GetBuildInfo() |
if tocversion >= 110000 then |
GetSpellInfo = function(spellID) |
if not spellID then |
return nil; |
end |
return C_Spell.GetSpellName(spellID) |
end |
end |
-- Specializations |
KHT_SPECIAL = "Enable 'Specialization' Timers" |
KHT_ASPECT_EAGLE = GetSpellInfo(186289) -- Aspect of the Eagle |
KHT_BESTIAL_TENACITY = GetSpellInfo(191414) -- Bestial Tenacity |
KHT_BINDING_SHOT = GetSpellInfo(109248) -- Binding Shot |
KHT_BLACK_ARROW = GetSpellInfo(194599) -- Black Arrow |
KHT_CALTROPS = GetSpellInfo(194277) -- Caltrops |
if tocversion >= 110000 then |
KHT_CALTROPS = "Caltrops has been removed in TWW" |
else |
KHT_CALTROPS = GetSpellInfo(194277) -- Caltrops |
end |
KHT_CAMO = GetSpellInfo(199483) -- Camouflage |
KHT_CAREFUL_AIM = GetSpellInfo(53238) -- Careful Aim |
KHT_CARVE = GetSpellInfo(187708) -- Carve |