Hi gus,I use addon AdiButtonAuras and I need to get some effect on Templars Verdict(on screenshot) when i have 3 or more holy power,but it need to write on Lua in addon, help please, guys )
I have example for dks soul reaper :
-- Sample rule using Configure
-- See https://github.com/Adirelle/AdiButto.../Rules.textile for more details
return Configure {
-- Unique Id
"SoulReaper",
-- Description
"Shows Hint when target is below 35% health.",
-- Spells to modify
{
114866, -- Soul Reaper (Blood)
130735, -- Soul Reaper (Frost)
130736, -- Soul Reaper (Unholly)
},
-- Unit(s) to watch
"enemy",
-- Event(s) to watch
{ "UNIT_HEALTH", "UNIT_MAXHEALTH" },
-- Callback
function(units, model)
if UnitHealth(units.enemy) / UnitHealthMax(units.enemy) < 0.35 then
model.hint = true
end
end
screenshot