feat: add Spirit of Zanza aura tracking and fix bar text font height handling

This commit is contained in:
Bluewhale1337
2026-11-05 18:46:44 +01:00
parent 7fdf76eff8
commit cc2d6830e5
6 changed files with 14 additions and 8 deletions
+2 -2
View File
@@ -101,8 +101,8 @@ function HealBot_CheckBuffs(unit)
[HEALBOT_POWER_WORD_FORTITUDE] = { HEALBOT_PRAYER_OF_FORTITUDE },
[HEALBOT_PRAYER_OF_FORTITUDE] = { HEALBOT_POWER_WORD_FORTITUDE },
-- Priest Spirit
[HEALBOT_DIVINE_SPIRIT] = { HEALBOT_PRAYER_OF_SPIRIT },
[HEALBOT_PRAYER_OF_SPIRIT] = { HEALBOT_DIVINE_SPIRIT },
[HEALBOT_DIVINE_SPIRIT] = { HEALBOT_PRAYER_OF_SPIRIT, HEALBOT_SPIRIT_OF_ZANZA, "Spirit of Zanza" },
[HEALBOT_PRAYER_OF_SPIRIT] = { HEALBOT_DIVINE_SPIRIT, HEALBOT_SPIRIT_OF_ZANZA, "Spirit of Zanza" },
-- Priest Shadow Protection
[HEALBOT_SHADOW_PROTECTION] = { HEALBOT_PRAYER_OF_SHADOW_PROTECTION },
[HEALBOT_PRAYER_OF_SHADOW_PROTECTION] = { HEALBOT_SHADOW_PROTECTION },
+2 -1
View File
@@ -79,7 +79,8 @@ HEALBOT_REJUVENATION = "Verj\195\188ngung";
HEALBOT_PRAYER_OF_HEALING = "Gebet der Heilung";
HEALBOT_CHAIN_HEAL = "Kettenheilung";
HEALBOT_POWER_WORD_FORTITUDE = "Machtwort: Seelenst\195\164rke";
HEALBOT_POWER_WORD_FORTITUDE = "Machtwort: Seelenst\195\164rke";
HEALBOT_SPIRIT_OF_ZANZA = "Geist von Zanza";
HEALBOT_MARK_OF_THE_WILD = "Mal der Wildnis";
HEALBOT_BLESSING_OF_SALVATION = "Segen der Rettung";
+2 -1
View File
@@ -82,7 +82,8 @@ HEALBOT_BLESSING_OF_LIGHT = "Blessing of Light";
HEALBOT_BLESSING_OF_SANCTUARY = "Blessing of Sanctuary";
HEALBOT_DIVINE_SPIRIT = "Divine Spirit";
HEALBOT_PRAYER_OF_FORTITUDE = "Prayer of Fortitude";
HEALBOT_PRAYER_OF_SPIRIT = "Prayer of Spirit";
HEALBOT_PRAYER_OF_SPIRIT = "Prayer of Spirit";
HEALBOT_SPIRIT_OF_ZANZA = "Spirit of Zanza";
HEALBOT_SHADOW_PROTECTION = "Shadow Protection";
HEALBOT_PRAYER_OF_SHADOW_PROTECTION = "Prayer of Shadow Protection";
HEALBOT_ARCANE_INTELLECT = "Arcane Intellect";
+2 -1
View File
@@ -79,7 +79,8 @@ HEALBOT_REJUVENATION = "R\195\169cup\195\169ration";
HEALBOT_PRAYER_OF_HEALING = "Pri\195\168re de soins";
HEALBOT_CHAIN_HEAL = "Salve de gu\195\169rison";
HEALBOT_POWER_WORD_FORTITUDE = "Mot de pouvoir : Robustesse";
HEALBOT_POWER_WORD_FORTITUDE = "Mot de pouvoir : Robustesse";
HEALBOT_SPIRIT_OF_ZANZA = "Esprit de Zanza";
HEALBOT_MARK_OF_THE_WILD = "Marque du fauve";
HEALBOT_BLESSING_OF_SALVATION = "B\195\169n\195\169diction de salut";
+2 -1
View File
@@ -61,7 +61,8 @@ if (GetLocale() == "koKR") then
HEALBOT_PRAYER_OF_HEALING = "치유의 기원";
HEALBOT_CHAIN_HEAL = "연쇄 치유";
HEALBOT_POWER_WORD_FORTITUDE = "신의 권능: 인내";
HEALBOT_POWER_WORD_FORTITUDE = "신의 권능: 인내";
HEALBOT_SPIRIT_OF_ZANZA = "잔자의 기백";
HEALBOT_INNER_FIRE = "내면의 열정";
HEALBOT_FEAR_WARD = "공포의 결계";
HEALBOT_ENLIGHTEN = "Enlighten";
+4 -2
View File
@@ -275,11 +275,13 @@ function HealBot_Action_EnableButton(button)
bar.txt:SetText(displayText);
bar.txt:SetTextColor(sr, sg, sb, sa);
local fontName, fontHeight, fontFlags = bar.txt:GetFont()
local btextheight = (HealBot_Config.btextheight and HealBot_Config.btextheight[HealBot_Config.Current_Skin]) or 10
local fontHeightToUse = (fontHeight and fontHeight >= 6) and fontHeight or btextheight
local fontOutline = HealBot_Config.bfontoutline[HealBot_Config.Current_Skin] or 0
local expectedFlags = fontOutline == 1 and "OUTLINE" or ""
local expectedFont = (HealBot_Config.bfont and HealBot_Config.bfont[HealBot_Config.Current_Skin]) or fontName
if fontFlags ~= expectedFlags or fontName ~= expectedFont then
bar.txt:SetFont(expectedFont, fontHeight, expectedFlags)
if fontFlags ~= expectedFlags or fontName ~= expectedFont or (fontHeight and fontHeight < 6) then
bar.txt:SetFont(expectedFont, fontHeightToUse, expectedFlags)
end
local iconSize = HealBot_Config.biconsize[HealBot_Config.Current_Skin] or 12