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
Aphid
VuhDo
Commits
6e1aa3b7
Commit
6e1aa3b7
authored
6 years ago
by
Ivaria
Browse files
Options
Download
Email Patches
Plain Diff
Standard debuffs can now be ignored/blacklisted by spell ID
parent
4abaff4c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
4 deletions
+24
-4
VuhDoDebuffs.lua
VuhDoDebuffs.lua
+2
-1
VuhDoOptions/VuhDoNewOptionsDebuffsStandard.lua
VuhDoOptions/VuhDoNewOptionsDebuffsStandard.lua
+21
-3
changelog.txt
changelog.txt
+1
-0
No files found.
VuhDoDebuffs.lua
View file @
6e1aa3b7
...
...
@@ -330,7 +330,8 @@ function VUHDO_determineDebuff(aUnit)
end
if
sCurChosenType
~=
6
-- VUHDO_DEBUFF_TYPE_CUSTOM
and
not
VUHDO_DEBUFF_BLACKLIST
[
tName
]
and
not
VUHDO_DEBUFF_BLACKLIST
[
tName
]
and
not
VUHDO_DEBUFF_BLACKLIST
[
tostring
(
tSpellId
)]
and
tIsRelevant
then
if
sIsUseDebuffIcon
and
(
tIsBossDebuff
or
not
sIsUseDebuffIconBossOnly
)
...
...
This diff is collapsed.
Click to expand it.
VuhDoOptions/VuhDoNewOptionsDebuffsStandard.lua
View file @
6e1aa3b7
...
...
@@ -5,10 +5,17 @@ VUHDO_SELECTED_DEBUFF_IGNORE = "";
--
local
tSpellNameById
;
function
VUHDO_initDebuffIgnoreComboModel
()
table
.
wipe
(
VUHDO_DEBUFF_IGNORE_COMBO_MODEL
);
for
tName
,
_
in
pairs
(
VUHDO_DEBUFF_BLACKLIST
)
do
tinsert
(
VUHDO_DEBUFF_IGNORE_COMBO_MODEL
,
{
tName
,
tName
});
for
tName
,
_
in
pairs
(
VUHDO_DEBUFF_BLACKLIST
)
do
tSpellNameById
=
VUHDO_resolveSpellId
(
tName
);
if
(
tSpellNameById
~=
tName
)
then
tinsert
(
VUHDO_DEBUFF_IGNORE_COMBO_MODEL
,
{
tName
,
"["
..
tName
..
"] "
..
tSpellNameById
});
else
tinsert
(
VUHDO_DEBUFF_IGNORE_COMBO_MODEL
,
{
tName
,
tName
});
end
end
end
...
...
@@ -31,8 +38,19 @@ end
--
function
VUHDO_deleteDebuffIgnoreClicked
(
aButton
)
local
tText
=
_G
[
aButton
:
GetParent
():
GetName
()
..
"IgnoreComboBoxEditBox"
]:
GetText
();
if
(
tText
~=
nil
)
then
VUHDO_DEBUFF_BLACKLIST
[
strtrim
(
tText
)]
=
nil
;
if
(
VUHDO_DEBUFF_BLACKLIST
[
strtrim
(
tText
)])
then
VUHDO_DEBUFF_BLACKLIST
[
strtrim
(
tText
)]
=
nil
;
else
local
tSpellId
=
string.match
(
tText
,
"([^\]\[]+)"
);
if
(
tSpellId
~=
nil
and
VUHDO_DEBUFF_BLACKLIST
[
tSpellId
])
then
VUHDO_DEBUFF_BLACKLIST
[
tSpellId
]
=
nil
;
end
end
VUHDO_initDebuffIgnoreComboModel
();
_G
[
aButton
:
GetParent
():
GetName
()
..
"IgnoreComboBox"
]:
Hide
();
_G
[
aButton
:
GetParent
():
GetName
()
..
"IgnoreComboBox"
]:
Show
();
...
...
This diff is collapsed.
Click to expand it.
changelog.txt
View file @
6e1aa3b7
...
...
@@ -19,6 +19,7 @@ Bugfixes:
Improvements:
-- Migrate minimap icon to LibDBIcon (fixes SexyMap compat)
-- Standard debuffs can now be ignored/blacklisted by spell ID
--------------------------------------------------------------
...
...
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