From 9a433ffaabb7ec8d1baf79d9b77f72ab4bb14f15 Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Thu, 3 Sep 2026 11:22:13 +0200 Subject: [PATCH] Normalize prediction spell target --- libs/libpredict.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/libpredict.lua b/libs/libpredict.lua index a1a6035..16c514c 100644 --- a/libs/libpredict.lua +++ b/libs/libpredict.lua @@ -420,7 +420,8 @@ libpredict.sender:SetScript("OnEvent", function() if arg1 ~= "player" then return end -- ClassicAPI follows the modern event shape: unit, target, castGUID, -- spellID, spellName, rank. TBC's legacy shape stores target in arg4. - senttarget = GetExpansion() == "vanilla" and arg2 or arg4 + local castTarget = GetExpansion() == "vanilla" and arg2 or arg4 + senttarget = castTarget and castTarget ~= "" and castTarget or nil elseif strfind(event, "SPELLCAST_START", 1) then local spell, time = arg1, arg2