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
Chris Houm
VuhDo
Commits
3432479d
Commit
3432479d
authored
4 years ago
by
Ivaria
Browse files
Options
Download
Email Patches
Plain Diff
Added exception to combat log based health updates for Nefarian
parent
5bc8aaeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
VuhDoCombatLogParser.lua
VuhDoCombatLogParser.lua
+12
-5
No files found.
VuhDoCombatLogParser.lua
View file @
3432479d
...
...
@@ -24,19 +24,26 @@ end
--
local
tInfo
;
local
tNpcId
;
local
tNewHealth
;
local
tDeadInfo
=
{
[
"dead"
]
=
true
};
local
function
VUHDO_addUnitHealth
(
aUnit
,
aDelta
,
aSrcGUID
)
tInfo
=
VUHDO_RAID
[
aUnit
]
or
tDeadInfo
;
if
not
tInfo
[
"dead"
]
then
-- Filter exception data from combat log in classic
-- sometimes combat log shows 19000+ damage but it's not correct E.g Ragnaros's Melt Weapon
if
(
abs
(
aDelta
)
>
10000
and
select
(
6
,
strsplit
(
"-"
,
aSrcGUID
))
==
"11502"
)
then
return
;
-- filter exception data from combat log in classic
-- sometimes combat log shows 19000+ damage but it's not correct e.g Ragnaros's Melt Weapon
if
abs
(
aDelta
)
>
10000
then
tNpcId
=
select
(
6
,
strsplit
(
"-"
,
aSrcGUID
));
-- 11502 - Ragnaros
-- 11583 - Nefarian
if
tNpcId
and
(
tNpcId
==
"11502"
or
tNpcId
==
"11583"
)
then
return
;
end
end
--
A
void the calculation to be disturbed by the exception data
--
a
void the calculation to be disturbed by the exception data
if
tInfo
[
"health"
]
~=
0
then
tNewHealth
=
tInfo
[
"health"
]
+
aDelta
;
else
...
...
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