mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-21 20:00:48 +00:00
libpredict: use selfcast if addons set true as target
This commit is contained in:
@@ -409,6 +409,7 @@ hooksecurefunc("CastSpellByName", function(effect, target)
|
|||||||
local default = UnitName("target") and UnitCanAssist("player", "target") and UnitName("target") or UnitName("player")
|
local default = UnitName("target") and UnitCanAssist("player", "target") and UnitName("target") or UnitName("player")
|
||||||
|
|
||||||
target = target and type(target) == "string" and UnitName(target) or target
|
target = target and type(target) == "string" and UnitName(target) or target
|
||||||
|
target = target and target == true and UnitName("player") or target
|
||||||
target = target and target == 1 and UnitName("player") or target
|
target = target and target == 1 and UnitName("player") or target
|
||||||
|
|
||||||
spell_queue[1] = effect
|
spell_queue[1] = effect
|
||||||
|
|||||||
Reference in New Issue
Block a user