From 327cd7a08c7443ba6029750003c5dd3cf65cffc0 Mon Sep 17 00:00:00 2001 From: Bluewhale1337 <295648290+Bluewhale1337@users.noreply.github.com> Date: Wed, 5 Aug 2026 22:25:02 +0200 Subject: [PATCH] fix: refine weapon enchant tooltip detection to use the first word of the spell name --- HealBot_Controller_Aura.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/HealBot_Controller_Aura.lua b/HealBot_Controller_Aura.lua index 9c92095..29f9d75 100644 --- a/HealBot_Controller_Aura.lua +++ b/HealBot_Controller_Aura.lua @@ -35,6 +35,9 @@ function HealBot_CheckShamanWeaponBuff(spellName) local hasMainHandEnchant, _, _, hasOffHandEnchant = GetWeaponEnchantInfo() if not (hasMainHandEnchant or hasOffHandEnchant) then return false end + local firstWord = string.match(spellName, "^(%w+)") + if not firstWord then return false end + HealBot_ScanTooltip:SetOwner(UIParent, "ANCHOR_NONE") local slots = {} if hasMainHandEnchant then table.insert(slots, 16) end @@ -47,7 +50,7 @@ function HealBot_CheckShamanWeaponBuff(spellName) local textObj = getglobal("HealBot_ScanTooltipTextLeft" .. i) if textObj then local text = textObj:GetText() - if text and string.find(text, spellName) then + if text and string.find(text, firstWord) then HealBot_ScanTooltip:Hide() return true end