Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Joy
VuhDo
Commits
6bafc393
Commit
6bafc393
authored
5 years ago
by
Ivaria
Browse files
Options
Download
Email Patches
Plain Diff
Migrate to blessed version of LibHealComm-4.0
parent
b7f3d05d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
VuhDoAddonAdapter.lua
VuhDoAddonAdapter.lua
+1
-1
VuhDoEventHandler.lua
VuhDoEventHandler.lua
+7
-7
VuhDoToolbox.lua
VuhDoToolbox.lua
+3
-3
No files found.
VuhDoAddonAdapter.lua
View file @
6bafc393
...
...
@@ -16,7 +16,7 @@ VUHDO_LibBase64 = LibStub:GetLibrary("LibBase64-1.0");
VUHDO_LibCustomGlow
=
LibStub
(
"LibCustomGlow-1.0"
);
VUHDO_Lib
Classic
HealComm
=
LibStub
(
"Lib
Classic
HealComm-
1
.0"
);
VUHDO_LibHealComm
=
LibStub
(
"LibHealComm-
4
.0"
);
VUHDO_LibClassicDurations
=
LibStub
(
"LibClassicDurations"
);
...
...
This diff is collapsed.
Click to expand it.
VuhDoEventHandler.lua
View file @
6bafc393
...
...
@@ -1568,7 +1568,7 @@ function VUHDO_OnLoad(anInstance)
VUHDO_ALL_EVENTS = nil;
if VUHDO_Lib
Classic
HealComm then
if VUHDO_LibHealComm then
local function HealComm_HealUpdated(aEvent, aCasterGUID, aSpellID, aHealType, aEndTime, ...)
local tTargets = { n = select("
#
", ...), ... };
...
...
@@ -1584,10 +1584,10 @@ function VUHDO_OnLoad(anInstance)
end
anInstance.HealComm_HealUpdated = HealComm_HealUpdated;
VUHDO_Lib
Classic
HealComm.RegisterCallback(anInstance, "
HealComm_HealStarted
", HealComm_HealUpdated);
VUHDO_Lib
Classic
HealComm.RegisterCallback(anInstance, "
HealComm_HealStopped
", HealComm_HealUpdated);
VUHDO_Lib
Classic
HealComm.RegisterCallback(anInstance, "
HealComm_HealDelayed
", HealComm_HealUpdated);
VUHDO_Lib
Classic
HealComm.RegisterCallback(anInstance, "
HealComm_HealUpdated
", HealComm_HealUpdated);
VUHDO_LibHealComm.RegisterCallback(anInstance, "
HealComm_HealStarted
", HealComm_HealUpdated);
VUHDO_LibHealComm.RegisterCallback(anInstance, "
HealComm_HealStopped
", HealComm_HealUpdated);
VUHDO_LibHealComm.RegisterCallback(anInstance, "
HealComm_HealDelayed
", HealComm_HealUpdated);
VUHDO_LibHealComm.RegisterCallback(anInstance, "
HealComm_HealUpdated
", HealComm_HealUpdated);
local function HealComm_HealModified(aEvent, aTargetGUID)
local tTarget = VUHDO_RAID_GUIDS[aTargetGUID];
...
...
@@ -1599,8 +1599,8 @@ function VUHDO_OnLoad(anInstance)
end
anInstance.HealComm_HealModified = HealComm_HealModified;
VUHDO_Lib
Classic
HealComm.RegisterCallback(anInstance, "
HealComm_ModifierChanged
", HealComm_HealModified);
VUHDO_Lib
Classic
HealComm.RegisterCallback(anInstance, "
HealComm_GUIDDisappeared
", HealComm_HealModified);
VUHDO_LibHealComm.RegisterCallback(anInstance, "
HealComm_ModifierChanged
", HealComm_HealModified);
VUHDO_LibHealComm.RegisterCallback(anInstance, "
HealComm_GUIDDisappeared
", HealComm_HealModified);
end
SLASH_VUHDO1 = "
/
vuhdo
";
...
...
This diff is collapsed.
Click to expand it.
VuhDoToolbox.lua
View file @
6bafc393
...
...
@@ -1111,15 +1111,15 @@ function VUHDO_unitGetIncomingHeals(aUnit, aCasterUnit)
end
if
not
UnitGetIncomingHeals
then
if
VUHDO_Lib
Classic
HealComm
then
if
VUHDO_LibHealComm
then
local
tTargetGUID
=
UnitGUID
(
aUnit
);
if
aCasterUnit
then
local
tCasterGUID
=
UnitGUID
(
aCasterUnit
);
return
(
VUHDO_Lib
Classic
HealComm
:
GetHealAmount
(
tTargetGUID
,
VUHDO_Lib
Classic
HealComm
.
ALL_HEALS
,
nil
,
tCasterGUID
)
or
0
)
*
(
VUHDO_Lib
Classic
HealComm
:
GetHealModifier
(
tTargetGUID
)
or
1
);
return
(
VUHDO_LibHealComm
:
GetHealAmount
(
tTargetGUID
,
VUHDO_LibHealComm
.
ALL_HEALS
,
nil
,
tCasterGUID
)
or
0
)
*
(
VUHDO_LibHealComm
:
GetHealModifier
(
tTargetGUID
)
or
1
);
else
return
(
VUHDO_Lib
Classic
HealComm
:
GetHealAmount
(
tTargetGUID
,
VUHDO_Lib
Classic
HealComm
.
ALL_HEALS
)
or
0
)
*
(
VUHDO_Lib
Classic
HealComm
:
GetHealModifier
(
tTargetGUID
)
or
1
);
return
(
VUHDO_LibHealComm
:
GetHealAmount
(
tTargetGUID
,
VUHDO_LibHealComm
.
ALL_HEALS
)
or
0
)
*
(
VUHDO_LibHealComm
:
GetHealModifier
(
tTargetGUID
)
or
1
);
end
else
return
0
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment