/trunk
## Interface: 60200 |
## Title: Kharthus's Hunter Timers |
## Notes: Times hunter buffs/debuffs |
## Version: 3.7.6 |
## Version: 3.7.7 |
## DefaultState: Enabled |
## LoadOnDemand: 0 |
## SavedVariables: KHTvars |
KHT_LOCK_LOAD, _, KHT_LOCK_LOAD_ICON = GetSpellInfo(168980); -- Lock and Load |
KHT_FOCUS_FIRE = GetSpellInfo(82692); -- Focus Fire |
KHT_SNIPER, _, KHT_SNIPER_ICON = GetSpellInfo(168811); -- Sniper Training |
KHT_SNIPER_MOVE, _, KHT_SNIPER_MOVE_ICON = GetSpellInfo(168809); -- Sniper Training: Recently Moved |
KHT_THRILL = GetSpellInfo(34720); -- Thrill of the Hunt |
KHT_GLAIVE, _, KHT_GLAIVE_ICON = GetSpellInfo(117050); -- Glaive Toss |
KHT_STAMPEDE = GetSpellInfo(121818); -- Stampede |
local khtSerpent = 0; |
local khtSerpentAoE = false; |
local khtSniper = 0; |
local khtSniperMove = 0; |
local khtFrenzy = 0; |
local khtMark = 0; |
local khtExplosive = 0; |
KHunterTimersFrame_add( duration*1000, spellName, spellId ); |
khtSniper = timeLeft; |
end |
local spellName, _, _, _, _, duration, timeLeft, _, _, _, spellId = UnitBuff("player", KHT_SNIPER_MOVE, nil ); |
if( spellName and timeLeft ~= khtSniperMove ) then |
duration = timeLeft - GetTime(); |
KHunterTimersFrame_add( duration*1000, spellName, spellId ); |
khtSniperMove = timeLeft; |
elseif spellName == nil then |
khtSniperMove = 0; |
for i=1, KHTvars["numBars"] do |
local barframe = _G[ "KHunterTimersStatus"..i]; |
if string.find( barframe.spell, KHT_SNIPER_MOVE ) then |
barframe.endTime = 0; |
end |
end |
end |
end |
if( KHTvars["skills"][KHT_THRILL] ) then |
local spellName, _, _, count, _, duration, timeLeft, _, _, _, spellId = UnitBuff("player", KHT_THRILL, nil ); |
KHTvars["textures"][KHT_PET_FRENZY] = KHT_PET_FRENZY_ICON; |
KHTvars["textures"][KHT_LOCK_LOAD] = KHT_LOCK_LOAD_ICON; |
KHTvars["textures"][KHT_SNIPER] = KHT_SNIPER_ICON; |
KHTvars["textures"][KHT_SNIPER_MOVE] = KHT_SNIPER_MOVE_ICON; |
KHTvars["textures"][KHT_BINDING] = KHT_BINDING_ICON; |
KHTvars["textures"][KHT_GLAIVE] = KHT_GLAIVE_ICON; |
khtSerpent = 0; |
khtSerpentAoE = false; |
khtSniper = 0; |
khtSniperMove = 0; |
khtFrenzy = 0; |
khtMark = 0; |
khtExplosive = 0; |
Version History |
v3.7.7 |
- Added Sniper Training: Recently Moved |
v3.7.6 |
- TOC update for 6.2 patch |
- Added Beating Heart of the Mountain |