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
Andrew Reed
VuhDo
Commits
4d51ebca
Commit
4d51ebca
authored
3 years ago
by
Ivaria
Browse files
Options
Download
Email Patches
Plain Diff
Use LibClassicDurations again
parent
3b6329df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
VuhDoDebuffs.lua
VuhDoDebuffs.lua
+18
-0
No files found.
VuhDoDebuffs.lua
View file @
4d51ebca
...
...
@@ -320,6 +320,15 @@ function VUHDO_determineDebuff(aUnit)
break
;
end
if
VUHDO_LibClassicDurations
then
local
tNewDuration
,
tNewExpiry
=
VUHDO_LibClassicDurations
:
GetAuraDurationByUnit
(
aUnit
,
tSpellId
,
tUnitCaster
,
tName
);
if
tDuration
==
0
and
tNewDuration
then
tDuration
=
tNewDuration
;
tExpiry
=
tNewExpiry
;
end
end
if
(
tExpiry
or
0
)
==
0
then
tExpiry
=
(
sCurIcons
[
tName
]
or
sEmpty
)[
2
]
or
tNow
;
end
-- Custom Debuff?
...
...
@@ -391,6 +400,15 @@ function VUHDO_determineDebuff(aUnit)
break
;
end
if
VUHDO_LibClassicDurations
then
local
tNewDuration
,
tNewExpiry
=
VUHDO_LibClassicDurations
:
GetAuraDurationByUnit
(
aUnit
,
tSpellId
,
tUnitCaster
,
tName
);
if
tDuration
==
0
and
tNewDuration
then
tDuration
=
tNewDuration
;
tExpiry
=
tNewExpiry
;
end
end
tDebuffConfig
=
VUHDO_CUSTOM_DEBUFF_CONFIG
[
tName
]
or
VUHDO_CUSTOM_DEBUFF_CONFIG
[
tostring
(
tSpellId
)]
or
sEmpty
;
if
tDebuffConfig
[
1
]
and
((
tDebuffConfig
[
3
]
and
tUnitCaster
==
"player"
)
or
(
tDebuffConfig
[
4
]
and
tUnitCaster
~=
"player"
))
then
-- Color?
...
...
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