/
</Anchor> |
</Anchors> |
</Button> |
<Button name="$parentTab5" inherits="KHunterTimersFrameTabTemplate" id="5" text="Misc"> |
<Button name="$parentTab5" inherits="KHunterTimersFrameTabTemplate" id="5" text="Azerite"> |
<Anchors> |
<Anchor point="LEFT" relativeTo="$parentTab4" relativePoint="RIGHT"> |
<Offset> |
[2] = 25, -- Talents |
[3] = 14, -- Common |
[4] = 9, -- Pets |
[5] = 1, -- Misc |
[5] = 2, -- Azerite Powers |
[6] = 1 -- Trinkets (removed) |
}; |
[8] = KHT_SPIRIT_MEND, |
[9] = KHT_WARP_TIME |
}, |
[5] = { -- Misc |
[1] = KHT_MISC, |
[2] = KHT_OFF |
[5] = { -- Azerite Powers |
[1] = KHT_AZERITE, |
[2] = KHT_DAGGER_BACK, |
[3] = KHT_OFF, |
[4] = KHT_OFF, |
[5] = KHT_OFF, |
[6] = KHT_OFF, |
[7] = KHT_OFF, |
[8] = KHT_OFF, |
[9] = KHT_OFF, |
[10] = KHT_OFF, |
[11] = KHT_OFF, |
[12] = KHT_OFF, |
[13] = KHT_OFF, |
[14] = KHT_OFF, |
[15] = KHT_OFF, |
[16] = KHT_OFF, |
[17] = KHT_OFF, |
[18] = KHT_OFF, |
[19] = KHT_OFF, |
[20] = KHT_OFF |
}, |
[6] = { -- Trinkets |
[1] = KHT_TRINKETS, |
local khtSurvivalist = 0 |
local khtTrueAim = 0 |
local khtBarbedShot = 0 |
local khtDaggerBack = 0 |
local khtTimeLeft = nil; |
end |
end |
end |
if( KHTvars["skills"][KHT_AZERITE] ) then |
if( KHTvars["skills"][KHT_DAGGER_BACK] ) then |
local spellName, _, count, _, duration, timeLeft, unitCaster, _, _, spellId = AuraUtil.FindAuraByName(KHT_DAGGER_BACK, "target", "HARMFUL"); |
if( spellName and unitCaster == "player" and timeLeft ~= khtDaggerBack ) then |
duration = timeLeft - GetTime(); |
KHunterTimersFrame_add( duration*1000, spellName, spellId, UnitName("target"), UnitGUID("target"), count ); |
khtDaggerBack = timeLeft; |
end |
end |
end |
elseif( event == "UNIT_SPELLCAST_SUCCEEDED" and firstArg == "player" ) then |
if( KHTvars["skills"][KHT_SPECIAL] ) then |
if( thirdArg == 187650 ) then |
khtSurvivalist = 0 |
khtTrueAim = 0 |
khtBarbedShot = 0 |
khtDaggerBack = 0 |
end |
Version History |
v4.3.1 |
- Added Dagger in the Back |
v4.3.0 |
- Fixed errors in 8.0 patch |
v4.2.2 |
## Interface: 80000 |
## Title: Kharthus's Hunter Timers |
## Notes: Times hunter buffs/debuffs |
## Version: 4.3.0 |
## Version: 4.3.1 |
## DefaultState: Enabled |
## LoadOnDemand: 0 |
## SavedVariables: KHTvars |
KHT_TRUESHOT = GetSpellInfo(193526) -- Trueshot |
KHT_WING_CLIP = GetSpellInfo(195645) -- Wing Clip |
-- Azerite Powers |
KHT_AZERITE = "Enable 'Azerite Power' Timers"; |
KHT_DAGGER_BACK = GetSpellInfo(280284) -- Dagger in the Back |
-- Talents |
KHT_TALENT = "Enable 'Talent' Timers" |
KHT_MURDER_CROWS = GetSpellInfo(131894) -- A Murder of Crows |
KHT_WARP_TIME = GetSpellInfo(35346) -- Warp Time |
KHT_FRENZY = GetSpellInfo(272790) -- Frenzy |
KHT_MISC = "Enable 'Miscellaneous' Timers"; |
KHT_TRINKETS = "Enable 'Trinket' Timers"; |
--Other |