mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-07-27 01:34:44 +00:00
fix: remove artificial mana check to allow 0-mana cost buffs and fix tooltips disappearing instead of turning red
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user