From 776266eecb21006f25f03cb393ba26e4e056d073 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 22 Dec 2017 22:25:57 +0100 Subject: [PATCH] thirdparty: add healcomm integration for solo-mode --- modules/thirdparty.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/thirdparty.lua b/modules/thirdparty.lua index 1461fb1d..ce74caa6 100644 --- a/modules/thirdparty.lua +++ b/modules/thirdparty.lua @@ -547,4 +547,18 @@ pfUI:RegisterModule("thirdparty", function () end) end end) + + AddIntegration("HealComm", function() + -- hook healcomm's addon message to parse single-player events + if AceLibrary and AceLibrary:HasInstance("HealComm-1.0") and pfUI.prediction then + local HealComm = AceLibrary("HealComm-1.0") + local pfHookHealCommSendAddonMessage = HealComm.SendAddonMessage + function HealComm.SendAddonMessage(this, msg) + if not UnitInRaid("player") and GetNumPartyMembers() < 1 then + pfUI.prediction:ParseChatMessage(UnitName("player"), msg) + end + pfHookHealCommSendAddonMessage(this, msg) + end + end + end) end)