diff --git a/HealBotBlue.toc b/HealBotBlue.toc index eafa611..4d8e139 100644 --- a/HealBotBlue.toc +++ b/HealBotBlue.toc @@ -1,6 +1,6 @@ ## Interface: 11200 ## Title: HealBotBlue -## Version: 1.3.1 +## Version: 1.4.0 ## Author: Bluewhale ## Notes: Adds panel with skinable bars for healing and decursive ## SavedVariables: HealBot_Config diff --git a/HealBot_Controller_Events.lua b/HealBot_Controller_Events.lua index 943aa2d..2f8157a 100644 --- a/HealBot_Controller_Events.lua +++ b/HealBot_Controller_Events.lua @@ -27,6 +27,13 @@ function HealBot_OnLoad(this) HealBot_Model:RegisterObserver("ROSTER_CHANGED", function() Delay_RecalcParty = 1 end) + HealBot_Model:RegisterObserver("EQUIPMENT_CHANGED", function(unitID) + if unitID == "player" then + HealBot_BonusScanner:ScanEquipment() + CalcEquipBonus = true; + HealBot_RecalcSpells(); + end + end) end function HealBot_RegisterThis(this) @@ -182,8 +189,14 @@ local HealBot_EventHandlers = { ["PARTY_MEMBER_ENABLE"] = function(this, arg1) HealBot_OnEvent_PartyMemberEnable(this, arg1) end, ["CHAT_MSG_SYSTEM"] = function(this, arg1) HealBot_OnEvent_SystemMsg(this, arg1) end, ["ZONE_CHANGED_NEW_AREA"] = function(this) HealBot_OnEvent_ZoneChanged(this) end, - ["UPDATE_INVENTORY_ALERTS"] = function(this) HealBot_OnEvent_PlayerEquipmentChanged(this) end, - ["UNIT_INVENTORY_CHANGED"] = function(this, arg1) HealBot_OnEvent_PlayerEquipmentChanged2(this, arg1) end, + ["UPDATE_INVENTORY_ALERTS"] = function(this) + HealBot_Model:NotifyObservers("EQUIPMENT_CHANGED", "player") + HealBot_OnEvent_PlayerEquipmentChanged(this) + end, + ["UNIT_INVENTORY_CHANGED"] = function(this, arg1) + HealBot_Model:NotifyObservers("EQUIPMENT_CHANGED", arg1) + HealBot_OnEvent_PlayerEquipmentChanged2(this, arg1) + end, ["PET_BAR_SHOWGRID"] = function(this) HealBot_OnEvent_PartyMembersChanged(this) end, ["PET_BAR_HIDEGRID"] = function(this) HealBot_OnEvent_PartyMembersChanged(this) end, ["UNIT_PET"] = function(this, arg1) HealBot_OnEvent_PartyMembersChanged(this) end, diff --git a/HealBot_Localization.en.lua b/HealBot_Localization.en.lua index 209a639..eb3ee61 100644 --- a/HealBot_Localization.en.lua +++ b/HealBot_Localization.en.lua @@ -1,4 +1,4 @@ -HEALBOT_VERSION = "1.3.1"; +HEALBOT_VERSION = "1.4"; ------------- -- ENGLISH -- diff --git a/README.md b/README.md index 904faff..9646804 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,10 @@ Default installation path: `C:\Program Files\World of Warcraft\Interface\AddOns\ ### Change Log -**1.3.1** +**v1.4** +* **Extra Frame support for pets and familiars added** Togglable from healing tab - Extra frames option selected & pets selected from dropdown. + +**v1.3.1** * **Hotfix: missing helper function restored** Fixed issue with lua error for druids. **v1.3**