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
Joschi Grey
VuhDo
Commits
d39dce76
Commit
d39dce76
authored
4 years ago
by
momo
Committed by
Ivaria
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Fix the bug: Sometimes tank's health bar jump to 0 because of Force Reactive Disk
parent
3432479d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
VuhDoCombatLogParser.lua
VuhDoCombatLogParser.lua
+6
-2
No files found.
VuhDoCombatLogParser.lua
View file @
d39dce76
...
...
@@ -24,7 +24,6 @@ end
--
local
tInfo
;
local
tNpcId
;
local
tNewHealth
;
local
tDeadInfo
=
{
[
"dead"
]
=
true
};
local
function
VUHDO_addUnitHealth
(
aUnit
,
aDelta
,
aSrcGUID
)
...
...
@@ -34,13 +33,18 @@ local function VUHDO_addUnitHealth(aUnit, aDelta, aSrcGUID)
-- 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
)
)
;
local
tSrc
,
_
,
_
,
_
,
_
,
tNpcId
=
strsplit
(
"-"
,
aSrcGUID
);
-- 11502 - Ragnaros
-- 11583 - Nefarian
if
tNpcId
and
(
tNpcId
==
"11502"
or
tNpcId
==
"11583"
)
then
return
;
end
-- 18168 - Force Reactive Disk
if
tSrc
and
tSrc
==
"Player"
and
abs
(
aDelta
)
==
18168
then
return
end
end
-- avoid the calculation to be disturbed by the exception data
...
...
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