mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-07-27 09:44:44 +00:00
Implement EQUIPMENT_CHANGED observer pattern and update project to v1.4.0
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
HEALBOT_VERSION = "1.3.1";
|
||||
HEALBOT_VERSION = "1.4";
|
||||
|
||||
-------------
|
||||
-- ENGLISH --
|
||||
|
||||
@@ -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**
|
||||
|
||||
Reference in New Issue
Block a user