mirror of
https://github.com/OldManAlpha/Puppeteer.git
synced 2025-11-28 23:48:35 +00:00
Fix Actions not running for out of range units
This commit is contained in:
parent
a7a29ede3b
commit
2a5ed7006b
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user