added option to show debuffs only for enemys OR friendly nameplates

added option to show debuffs only for enemys OR friendly nameplates
This commit is contained in:
Meow
2026-02-28 21:32:17 +01:00
parent 988dfc7079
commit bd36d91189
4 changed files with 17 additions and 13 deletions
+8 -12
View File
@@ -2753,21 +2753,17 @@ function pfUI.uf:ClickAction(button)
-- run click cast action
local is_macro = string.find(this.clickactions[modstring], "^%/(.+)")
if superwow_active and not is_macro then
CastSpellByName(this.clickactions[modstring], unitstr)
local tswitch = UnitIsUnit(unitstr, "target")
TargetUnit(unitstr)
if is_macro then
RunMacroText(this.clickactions[modstring])
else
local tswitch = UnitIsUnit(unitstr, "target")
TargetUnit(unitstr)
if is_macro then
RunMacroText(this.clickactions[modstring])
else
CastSpellByName(this.clickactions[modstring])
end
if not tswitch then TargetLastTarget() end
CastSpellByName(this.clickactions[modstring])
end
if not tswitch then TargetLastTarget() end
return
end
end