From c99a35eb823f234964dff2e3e53535e78d3a6ac4 Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Tue, 17 Feb 2026 16:59:30 +0100 Subject: [PATCH] castspellbyname unit castspellbyname unit --- modules/mouseover.lua | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/modules/mouseover.lua b/modules/mouseover.lua index 8b91e387..95877739 100644 --- a/modules/mouseover.lua +++ b/modules/mouseover.lua @@ -51,13 +51,10 @@ pfUI:RegisterModule("mouseover", "vanilla", function () end -- Nampower: CastSpellByName supports a second unit parameter directly. - -- Use it when available to avoid a target switch entirely. + -- unit is already resolved to "mouseover", "target" or "player" at this point. if not func and GetNampowerVersion then - local resolvedUnit = GetUnitString(unit) - if resolvedUnit then - CastSpellByName(msg, resolvedUnit) - return - end + CastSpellByName(msg, unit) + return end -- If target and mouseover are friendly units, we can't use spell target as it @@ -100,4 +97,4 @@ pfUI:RegisterModule("mouseover", "vanilla", function () TargetLastTarget() end end -end) +end) \ No newline at end of file