From 2e5ed4d7e7c65b81c332b137597a4fcdcf6cbb04 Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 16 Aug 2025 09:56:39 +0200 Subject: [PATCH] libpredict: use selfcast if addons set true as target --- libs/libpredict.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/libpredict.lua b/libs/libpredict.lua index e98412cd..448876c8 100644 --- a/libs/libpredict.lua +++ b/libs/libpredict.lua @@ -409,6 +409,7 @@ hooksecurefunc("CastSpellByName", function(effect, target) 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 target == true and UnitName("player") or target target = target and target == 1 and UnitName("player") or target spell_queue[1] = effect