Reverted previous class check on debuffs - only dispellable by players class will be displayed + certain mechanical debuffs like debuff from PW:S

This commit is contained in:
Bluewhale1337
2026-08-24 18:25:04 +02:00
parent 9c1f873b48
commit 50661ac924
+17 -18
View File
@@ -238,18 +238,7 @@ function HealBot_Options_CDCButRight_OnLoad()
UIDropDownMenu_Initialize(this, HealBot_Options_CDCButRight_DropDown) UIDropDownMenu_Initialize(this, HealBot_Options_CDCButRight_DropDown)
UIDropDownMenu_SetWidth(140, this) UIDropDownMenu_SetWidth(140, this)
end end
-- HealBot_Options_CDCToggle_OnClick: UI handler for OnClick event.
function HealBot_Options_CDCToggle_OnClick(spell, button, class)
local spellID = HealBot_GetSpellId(spell)
local spellName = HealBot_GetSpellName(spellID)
if HealBot_Config.CDCLeftText[class]==spellName then
HealBot_Config.CDCLeftText[class]="None"
elseif HealBot_Config.CDCRightText[class]==spellName then
HealBot_Config.CDCRightText[class]="None"
end
HealBot_Options_CDC_SetCombo(spell, button, class)
end
-- HealBot_Options_CDCButLeft_OnSelect: UI handler for OnSelect options panel. -- HealBot_Options_CDCButLeft_OnSelect: UI handler for OnSelect options panel.
function HealBot_Options_CDCButLeft_OnSelect() function HealBot_Options_CDCButLeft_OnSelect()
local class=UnitClass("Player"); local class=UnitClass("Player");
@@ -281,12 +270,22 @@ function HealBot_Options_CDC_SetCombo(spell, button, class)
end end
-- HealBot_Options_Debuff_Reset: Restores default debuff tracking options. -- HealBot_Options_Debuff_Reset: Restores default debuff tracking options.
function HealBot_Options_Debuff_Reset() function HealBot_Options_Debuff_Reset()
HealBot_DebuffWatch = { local classEN=HealBot_UnitClass("player")
[HEALBOT_DISEASE_en] = true, if classEN=="PRIEST" or classEN=="DRUID" or classEN=="PALADIN" or classEN=="SHAMAN" then
[HEALBOT_MAGIC_en] = true, local spell = HealBot_Config.CDCLeftText[UnitClass("player")];
[HEALBOT_POISON_en] = true, HealBot_DebuffWatch = {[HEALBOT_DISEASE_en]=false, [HEALBOT_MAGIC_en]=false, [HEALBOT_POISON_en]=false, [HEALBOT_CURSE_en]=false }
[HEALBOT_CURSE_en] = true if spell and spell ~= "None" and HealBot_Debuff_Types[spell] then
} table.foreach(HealBot_Debuff_Types[spell], function (index,debuff)
HealBot_DebuffWatch[debuff]=true;
end)
end
spell = HealBot_Config.CDCRightText[UnitClass("player")];
if spell and spell ~= "None" and HealBot_Debuff_Types[spell] then
table.foreach(HealBot_Debuff_Types[spell], function (index,debuff)
HealBot_DebuffWatch[debuff]=true;
end)
end
end
end end
-- HealBot_Colorpick_OnClick: Opens color picker for debuff colors. -- HealBot_Colorpick_OnClick: Opens color picker for debuff colors.
function HealBot_Colorpick_OnClick(CDCType) function HealBot_Colorpick_OnClick(CDCType)