mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-07-27 09:44:44 +00:00
fix: resolve Self Only buff tracking failing on raid frames by replacing direct unit string comparisons with UnitIsUnit
This commit is contained in:
@@ -91,7 +91,7 @@ function HealBot_CheckBuffs(unit)
|
|||||||
local val = HealBot_Config.BuffDropDowns[myClass][j]
|
local val = HealBot_Config.BuffDropDowns[myClass][j]
|
||||||
if val and val > 0 then
|
if val and val > 0 then
|
||||||
local isSelfOnly = (HealBot_Config.BuffWatchSelf and HealBot_Config.BuffWatchSelf[j] == 1)
|
local isSelfOnly = (HealBot_Config.BuffWatchSelf and HealBot_Config.BuffWatchSelf[j] == 1)
|
||||||
if not (isSelfOnly and unit ~= "player") then
|
if not (isSelfOnly and not UnitIsUnit(unit, "player")) then
|
||||||
local spellName = HealBot_Buff_Spells[myClass][val]
|
local spellName = HealBot_Buff_Spells[myClass][val]
|
||||||
|
|
||||||
local hasIt = hasBuff[spellName]
|
local hasIt = hasBuff[spellName]
|
||||||
@@ -100,7 +100,7 @@ function HealBot_CheckBuffs(unit)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if not hasIt then
|
if not hasIt then
|
||||||
if myClass == "SHAMAN" and unit == "player" and string.find(spellName, " Weapon") then
|
if myClass == "SHAMAN" and UnitIsUnit(unit, "player") and string.find(spellName, " Weapon") then
|
||||||
hasIt = HealBot_CheckShamanWeaponBuff(spellName)
|
hasIt = HealBot_CheckShamanWeaponBuff(spellName)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user