feat: add spell cast announcements with target validation for resurrections and added announcements for hoovercasting (mousover frames)

This commit is contained in:
Bluewhale1337
2026-07-11 11:06:27 +02:00
parent 86e0e0b18a
commit a1aa1a4c1d
2 changed files with 40 additions and 14 deletions
+12
View File
@@ -276,10 +276,22 @@ do
do
local autoSelfCast = GetCVar("autoSelfCast")
SetCVar("autoSelfCast", "0") -- Ensure disabled
local spellName = nil
if not GetActionText(slot) then
HealBot_ScanTooltip:SetOwner(HealBot_ScanTooltip, "ANCHOR_NONE")
HealBot_ScanTooltip:SetAction(slot)
spellName = HealBot_ScanTooltipTextLeft1 and HealBot_ScanTooltipTextLeft1:GetText()
end
orig(slot, checkCursor, onSelf)
if autoSelfCast then
SetCVar("autoSelfCast", autoSelfCast)
end
if spellName and HealBot_AnnounceCast then
HealBot_AnnounceCast(spellName, mouseover)
end
end
SpellTargetUnit(mouseover)