diff --git a/HealBot_Options_Auto.xml b/HealBot_Options_Auto.xml index 333cc5d..b813d1a 100644 --- a/HealBot_Options_Auto.xml +++ b/HealBot_Options_Auto.xml @@ -8,7 +8,7 @@ - + @@ -36,7 +36,7 @@ - + @@ -60,7 +60,7 @@ - + @@ -84,7 +84,7 @@ - + @@ -108,7 +108,7 @@ - + @@ -132,7 +132,7 @@ - + diff --git a/HealBot_Options_Buffs.xml b/HealBot_Options_Buffs.xml index 81171fa..87212d1 100644 --- a/HealBot_Options_Buffs.xml +++ b/HealBot_Options_Buffs.xml @@ -11,7 +11,7 @@ - + @@ -26,7 +26,7 @@ - + @@ -39,7 +39,7 @@ - + @@ -53,7 +53,7 @@ - + @@ -89,10 +89,10 @@ - + - + @@ -126,10 +126,10 @@ - + - + @@ -163,10 +163,10 @@ - + - + @@ -200,10 +200,10 @@ - + - + @@ -228,7 +228,7 @@ - + @@ -237,10 +237,10 @@ - + - + @@ -274,10 +274,10 @@ - + - + @@ -311,10 +311,10 @@ - + - + @@ -348,10 +348,10 @@ - + - + diff --git a/HealBot_Options_Chat.xml b/HealBot_Options_Chat.xml index eb11d34..81ccb3a 100644 --- a/HealBot_Options_Chat.xml +++ b/HealBot_Options_Chat.xml @@ -12,7 +12,7 @@ - + @@ -68,7 +68,7 @@ - + @@ -124,7 +124,7 @@ - + @@ -180,7 +180,7 @@ - + @@ -236,7 +236,7 @@ - + diff --git a/HealBot_Options_General.xml b/HealBot_Options_General.xml index c4c5ac5..38f5ba8 100644 --- a/HealBot_Options_General.xml +++ b/HealBot_Options_General.xml @@ -10,7 +10,7 @@ - + @@ -49,7 +49,7 @@ - + @@ -62,7 +62,7 @@ - + @@ -75,7 +75,7 @@ - + @@ -101,7 +101,7 @@ - + @@ -116,7 +116,7 @@ - + @@ -128,7 +128,7 @@ - + @@ -150,7 +150,7 @@ - + @@ -197,7 +197,7 @@ - + diff --git a/HealBot_Options_Integrations.xml b/HealBot_Options_Integrations.xml index 4609264..3611276 100644 --- a/HealBot_Options_Integrations.xml +++ b/HealBot_Options_Integrations.xml @@ -8,7 +8,7 @@ - + @@ -46,7 +46,7 @@ - + @@ -106,7 +106,7 @@ - + @@ -117,7 +117,7 @@ - + diff --git a/HealBot_Options_Skins.xml b/HealBot_Options_Skins.xml index bbcb57e..ce7899e 100644 --- a/HealBot_Options_Skins.xml +++ b/HealBot_Options_Skins.xml @@ -92,39 +92,6 @@ HealBot_Options_NewSkinb_OnClick(this) - - - - - - - - - - - - - - - - HealBot_Options_val_OnLoad(this,HEALBOT_OPTIONS_TESTBARS,1,40) - HealBot_Options_NumTestBars_OnValueChanged(this) - - @@ -612,6 +579,41 @@ + + + + + + + + + + + + + + + + + + HealBot_Options_val_OnLoad(this,HEALBOT_OPTIONS_TESTBARS,1,40) + HealBot_Options_NumTestBars_OnValueChanged(this) + + diff --git a/HealBot_Options_Spells.xml b/HealBot_Options_Spells.xml index 9e23506..e7be0b3 100644 --- a/HealBot_Options_Spells.xml +++ b/HealBot_Options_Spells.xml @@ -11,7 +11,7 @@ - + @@ -63,7 +63,7 @@ - + @@ -79,7 +79,7 @@ - + @@ -92,7 +92,7 @@ - + @@ -118,7 +118,7 @@ - + @@ -200,7 +200,7 @@ - + @@ -219,7 +219,7 @@ - + @@ -233,7 +233,7 @@ - + @@ -246,7 +246,7 @@ - + @@ -258,7 +258,7 @@ - + @@ -271,7 +271,7 @@ - + @@ -284,7 +284,7 @@ - + diff --git a/HealBot_View_Layout.lua b/HealBot_View_Layout.lua index 48c1eb7..50034f6 100644 --- a/HealBot_View_Layout.lua +++ b/HealBot_View_Layout.lua @@ -69,13 +69,13 @@ function HealBot_HealthColor(unit, hlth, maxhlth) end local colorMode = HealBot_Config.bcolormode[HealBot_Config.Current_Skin] or 1 - if colorMode == 2 and HealBot_Model and HealBot_Model.units[unit] and HealBot_Model.units[unit].englishClass and RAID_CLASS_COLORS and RAID_CLASS_COLORS[HealBot_Model.units[unit].englishClass] then + if colorMode == 2 and string.find(unit, "pet") then + r, g, b = 0.4, 0.9, 0.6 -- Mint color + elseif colorMode == 2 and HealBot_Model and HealBot_Model.units[unit] and HealBot_Model.units[unit].englishClass and RAID_CLASS_COLORS and RAID_CLASS_COLORS[HealBot_Model.units[unit].englishClass] then local engClass = HealBot_Model.units[unit].englishClass r = RAID_CLASS_COLORS[engClass].r g = RAID_CLASS_COLORS[engClass].g b = RAID_CLASS_COLORS[engClass].b - elseif colorMode == 2 and string.find(unit, "pet") then - r, g, b = 0.4, 0.9, 0.6 -- Mint color else if pct >= 0.98 then r = 0.0; end if pct < 0.98 and pct >= 0.65 then r = 2.94 - (pct * 3); end diff --git a/README.md b/README.md index df9b2e2..ee20e16 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,7 @@ Default installation path: `C:\Program Files\World of Warcraft\Interface\AddOns\ * **UI Update - Customizable icon size** - Added an option to change size of HoT icons (default to 12px). * **Cleanup** - Removed dead code `HealBot_Groups` table. * **Bug Fix - Buff Watch Self** - Fixed an issue where the "Self Only" toggle for watched buffs failed to load visually across sessions. +* **Bug Fix - Pet Coloring** - Fixed an issue where custom server integrations giving pets a class could override the mint pet color when class color override is toggled. **v1.6.2** * **Hotfix - raid and party frames** - if getNumRaidMembers() > 0 wrapper around extra bars stopped from displaying all frames blocked from displaying Extras\Raid.