Fix Actions not running for out of range units

This commit is contained in:
OldManAlpha 2025-08-11 14:53:09 -07:00
parent a7a29ede3b
commit 2a5ed7006b
2 changed files with 5 additions and 2 deletions

View File

@ -634,10 +634,13 @@ end
local emptySpell = {}
function UnitFrame_OnClick(button, unit, unitFrame)
local binding = GetBindingFor(unit, GetKeyModifier(), button)
if not UnitExists(unit) then
if binding and binding.Type == "ACTION" then
RunBinding(binding, unit, unitFrame)
end
return
end
local binding = GetBindingFor(unit, GetKeyModifier(), button)
local targetCastable = UnitIsConnected(unit) and UnitIsVisible(unit)
local wantToRes = PTOptions.AutoResurrect and util.IsDeadFriend(unit) and ResurrectionSpells[GetClass("player")]
if not binding then

View File

@ -1,5 +1,5 @@
## Interface: 11200
## Version: 1.0.0
## Version: 1.0.0-postdev
## Title: Puppeteer
## Notes: Unit frames addon tailored for healers
## Author: OldManAlpha, Richard Truax(i2ichardt)