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
momo
VuhDo
Commits
522dd66f
Commit
522dd66f
authored
5 years ago
by
Ivaria
Browse files
Options
Download
Email Patches
Plain Diff
Fixed aura durations
parent
d857a761
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
2 deletions
+41
-2
VuhDoBarCustomizerHots.lua
VuhDoBarCustomizerHots.lua
+18
-1
VuhDoDebuffs.lua
VuhDoDebuffs.lua
+23
-1
No files found.
VuhDoBarCustomizerHots.lua
View file @
522dd66f
...
...
@@ -541,15 +541,32 @@ local function VUHDO_updateHots(aUnit, anInfo)
if
not
tBuffIcon
then
tDebuffOffset
=
tCnt
-
1
;
else
if
VUHDO_LibClassicDurations
then
local
tNewDuration
,
tNewExpiry
=
VUHDO_LibClassicDurations
:
GetAuraDurationByUnit
(
aUnit
,
tSpellId
,
tCaster
,
tBuffName
);
if
tDuration
==
0
and
tNewDuration
then
tDuration
=
tNewDuration
;
tExpiry
=
tNewExpiry
;
end
end
end
end
if
tDebuffOffset
then
-- Achtung kein elseif
tBuffName
,
tBuffIcon
,
tStacks
,
_
,
tDuration
,
tExpiry
,
tCaster
,
_
,
_
,
tSpellId
=
UnitDebuff
(
aUnit
,
tCnt
-
tDebuffOffset
);
if
not
tBuffIcon
then
break
;
end
if
VUHDO_LibClassicDurations
then
local
tNewDuration
,
tNewExpiry
=
VUHDO_LibClassicDurations
:
GetAuraDurationByUnit
(
aUnit
,
tSpellId
,
tCaster
,
tBuffName
);
if
tDuration
==
0
and
tNewDuration
then
tDuration
=
tNewDuration
;
tExpiry
=
tNewExpiry
;
end
end
end
tIsCastByPlayer
=
tCaster
==
"player"
or
tCaster
==
VUHDO_PLAYER_RAID_ID
;
...
...
This diff is collapsed.
Click to expand it.
VuhDoDebuffs.lua
View file @
522dd66f
...
...
@@ -299,10 +299,20 @@ function VUHDO_determineDebuff(aUnit)
for
tCnt
=
1
,
huge
do
tName
,
tIcon
,
tStacks
,
tTypeString
,
tDuration
,
tExpiry
,
tUnitCaster
,
_
,
_
,
tSpellId
,
_
,
tIsBossDebuff
=
UnitDebuff
(
aUnit
,
tCnt
);
if
not
tIcon
then
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
tStacks
=
tStacks
or
0
;
if
(
tExpiry
or
0
)
==
0
then
tExpiry
=
(
sCurIcons
[
tName
]
or
sEmpty
)[
2
]
or
tNow
;
end
...
...
@@ -354,7 +364,19 @@ function VUHDO_determineDebuff(aUnit)
for
tCnt
=
1
,
huge
do
tName
,
tIcon
,
tStacks
,
_
,
tDuration
,
tExpiry
,
tUnitCaster
,
_
,
_
,
tSpellId
=
UnitBuff
(
aUnit
,
tCnt
);
if
not
tIcon
then
break
;
end
if
not
tIcon
then
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
;
...
...
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