Feature Request: Recently used
simyellow opened this issue ยท 1 comments
Hello, could you possibly add an option to highlight ability that has been last used?
This is useful to maintain Hit Combo with Monk; i.e around the ability that would cancel Hit Combo could be a red border.
As of now I use a WeakAura showing the last the ability, but it is just an extra clutter on screen and it is not as easy to see and based reaction off it as it would be directly on the buttons.
If it helps, the WH Custom Trigger looks like this:
function(event, _, message, _, sourceGUID, _, _, _, destGUID, _, _, _, spellID, spellName)
aura_env.lastHit = aura_env.lastHit or 0
local spellList = {}
spellList[100780] = true -- Tiger Palm
spellList[100784] = true -- Blackout Kick
spellList[107428] = true -- Rising Sun Kick
spellList[101545] = true -- Flying Serpent Kick
spellList[113656] = true -- Fists of Fury
spellList[101546] = true -- Spinning Crane Kick
spellList[116847] = true -- Rushing Jade Wind
spellList[152175] = true -- Whirling Dragon Punch
spellList[115098] = true -- Chi Wave
spellList[123986] = true -- Chi Burst
spellList[117952] = true -- Crackling Jade Lightning
spellList[205320] = true -- Strike of the Windlord
spellList[115080] = true -- Touch of Death
if event == "COMBAT_LOG_EVENT_UNFILTERED" and message == "SPELL_CAST_SUCCESS" and sourceGUID == UnitGUID("player") then
if spellList[spellID] then
if spellID == aura_env.lastHit then
if not(aura_env.lastHit == 101545) then
PlaySoundFile("Interface\\AddOns\\WeakAuras\\Media\\Sounds\\BananaPeelSlip.ogg","SFX");
end
comboFlash = 1
else
aura_env.lastHit = spellID
comboFlash = 0
end
end
-- Sacred Draenic Incense
elseif event == "COMBAT_LOG_EVENT_UNFILTERED" and sourceGUID == UnitGUID("player") and spellName == "Rising Sun Kick" and not(aura_env.lastHit == 107428) and not(message == "SPELL_CAST_FAILED")then
aura_env.flash = 0
aura_env.lastHit = 203858 -- Fake Rising Sun Kick spellID
-- Sacred Draenic Incense
end
return true
end
Also Custom Code in Actions:
aura_env.lastHit = aura_env.lastHit or 137384
comboFlash = 0