mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-10-27 22:20:52 +00:00
refactor: unify aura and hoT tracking into a single master dictionary with localized support
This commit is contained in:
@@ -603,3 +603,34 @@ function HealBot_ReleaseTable(t)
|
||||
end
|
||||
end
|
||||
|
||||
HealBot_TrackedAuras = {
|
||||
["Renew"] = { texture = "Interface\\Icons\\Spell_Holy_Renew", isDebuff = false, showTimer = true, locKey = "HEALBOT_RENEW" },
|
||||
["Rejuvenation"] = { texture = "Interface\\Icons\\Spell_Nature_Rejuvenation", isDebuff = false, showTimer = true, locKey = "HEALBOT_REJUVENATION" },
|
||||
["Regrowth"] = { texture = "Interface\\Icons\\Spell_Nature_ResistNature", isDebuff = false, showTimer = true, locKey = "HEALBOT_REGROWTH" },
|
||||
["Power Word: Shield"] = { texture = "Interface\\Icons\\Spell_Holy_PowerWordShield", isDebuff = false, showTimer = true, locKey = "HEALBOT_POWER_WORD_SHIELD" },
|
||||
["Fear Ward"] = { texture = "Interface\\Icons\\Spell_Holy_Excorcism", isDebuff = false, showTimer = true, locKey = "HEALBOT_FEAR_WARD" },
|
||||
["Abolish Disease"] = { texture = "Interface\\Icons\\Spell_Nature_NullifyDisease",isDebuff = false, showTimer = true, locKey = "HEALBOT_ABOLISH_DISEASE" },
|
||||
["Abolish Poison"] = { texture = "Interface\\Icons\\Spell_Nature_NullifyPoison", isDebuff = false, showTimer = true, locKey = "HEALBOT_ABOLISH_POISON" },
|
||||
["Weakened Soul"] = { texture = "Interface\\Icons\\Spell_Holy_AshesToAshes", isDebuff = true, showTimer = true, locKey = "HEALBOT_WEAKENED_SOUL" },
|
||||
["Blessing of Protection"] = { texture = "Interface\\Icons\\Spell_Holy_SealOfProtection", isDebuff = false, showTimer = false },
|
||||
["Holy Scriptures"] = { texture = "Interface\\Icons\\btnholyscriptures", isDebuff = false, showTimer = false },
|
||||
};
|
||||
|
||||
HealBot_TrackedAura_Textures = {};
|
||||
HealBot_TrackedAura_Spells = {};
|
||||
|
||||
function HealBot_Init_TrackedAuras()
|
||||
for spell, info in pairs(HealBot_TrackedAuras) do
|
||||
HealBot_TrackedAura_Textures[info.texture] = info
|
||||
HealBot_TrackedAura_Spells[spell] = info
|
||||
if info.locKey then
|
||||
local locName = getglobal(info.locKey)
|
||||
if locName and locName ~= "" then
|
||||
HealBot_TrackedAura_Spells[locName] = info
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
HealBot_Init_TrackedAuras();
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user