Code:
if class == "WARRIOR" then
whoaUnitFrames.config.repositionPartyText = false
local frame = CreateFrame("FRAME")
frame:RegisterEvent("UNIT_AURA")
frame:RegisterEvent("PLAYER_REGEN_ENABLED")
frame:RegisterEvent("PLAYER_REGEN_DISABLED")
frame:SetScript("OnEvent", function(_, event)
if event == "PLAYER_REGEN_ENABLED" then
SpellActivationOverlay_HideOverlays(SpellActivationOverlayFrame, 6673)
elseif event == "PLAYER_REGEN_DISABLED" then
-- powerauras
frame:SetScript("OnEvent", function(self, event, ...)
local unitid = ... if unitid ~= "player" then return end
if not UnitBuff("player", "Schlachtruf") and not UnitBuff("player", "Befehlsruf") then
SpellActivationOverlay_ShowOverlay(SpellActivationOverlayFrame, 6673, "INTERFACE\\ICONS\\Ability_Warrior_BattleShout.blp", "TOP", 1.1, 139, 65, 239, false, false)
else
SpellActivationOverlay_HideOverlays(SpellActivationOverlayFrame, 6673)
end
end)
end
end)
[COLOR="rgb(72, 61, 139)"]end[/color]
[COLOR="rgb(72, 61, 139)"]A[/color] Whoa unitframes
Iam new whit Lua and I've stolen a lot of things together
what it should do?!?
When I'm warrior and not Commanding Shout or Battle Shout in the fight on me than show a icon over me.