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
Ven de Thiel
VuhDo
Commits
5bc8aaeb
Commit
5bc8aaeb
authored
4 years ago
by
Ivaria
Browse files
Options
Download
Email Patches
Plain Diff
Additional assertions for pet target units that may not exist
parent
20c793ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
VuhDoEventHandler.lua
VuhDoEventHandler.lua
+2
-2
No files found.
VuhDoEventHandler.lua
View file @
5bc8aaeb
...
...
@@ -1050,7 +1050,7 @@ local function VUHDO_updateAllAggro()
tInfo
[
"aggro"
]
=
true
;
end
tTarget
=
tInfo
[
"targetUnit"
];
if
not
UnitIsFriend
(
tUnit
,
tTarget
)
then
if
tTarget
and
UnitExists
(
tTarget
)
and
not
UnitIsFriend
(
tUnit
,
tTarget
)
then
if
VUHDO_INTERNAL_TOGGLES
[
14
]
then
-- VUHDO_UPDATE_AGGRO
_
,
_
,
tThreatPerc
=
UnitDetailedThreatSituation
(
tUnit
,
tTarget
);
tInfo
[
"threatPerc"
]
=
tThreatPerc
or
0
;
...
...
@@ -1058,7 +1058,7 @@ local function VUHDO_updateAllAggro()
tAggroUnit
=
VUHDO_RAID_NAMES
[
UnitName
(
tTarget
..
"target"
)];
if
tAggroUnit
then
if
tAggroUnit
and
UnitExists
(
tAggroUnit
)
then
if
VUHDO_INTERNAL_TOGGLES
[
14
]
then
-- VUHDO_UPDATE_AGGRO
_
,
_
,
tThreatPerc
=
UnitDetailedThreatSituation
(
tAggroUnit
,
tTarget
);
VUHDO_RAID
[
tAggroUnit
][
"threatPerc"
]
=
tThreatPerc
or
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