mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-07-27 09:44:44 +00:00
feat: add spell cast announcements with target validation for resurrections and added announcements for hoovercasting (mousover frames)
This commit is contained in:
+12
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user