fix: remove artificial mana check to allow 0-mana cost buffs and fix tooltips disappearing instead of turning red

This commit is contained in:
Bluewhale1337
2026-07-18 23:37:51 +02:00
parent 826bf64eda
commit 3845ada15f
+2 -1
View File
@@ -462,7 +462,8 @@ end
function HealBot_CanCastSpell(spell, unit) function HealBot_CanCastSpell(spell, unit)
local this = HealBot_Spells[spell]; local this = HealBot_Spells[spell];
if this.Mana > UnitMana("player") then return false end; -- Removed manual mana check so WoW can properly handle 0-cost buffs (Clearcasting/Inner Focus)
-- and so tooltips can render in red instead of disappearing.
if this.BagSlot then if this.BagSlot then
local bag, slot = HealBot_UnpackBagSlot(this.BagSlot); local bag, slot = HealBot_UnpackBagSlot(this.BagSlot);
local start, duration, enable = GetContainerItemCooldown(bag, slot); local start, duration, enable = GetContainerItemCooldown(bag, slot);