Commit 599e0337 authored by Ivaria's avatar Ivaria
Browse files

Added Spell Trace settings to 'VuhDo Options > General > Spell Trace'. Spell...

Added Spell Trace settings to 'VuhDo Options > General > Spell Trace'.  Spell Trace list should now be properly saved and loaded as part of a profile.
parent c606019b
No related merge requests found
......@@ -457,6 +457,49 @@ end
--
local function VUHDO_spellTraceAddDefaultSettings(aSpellName)
if (VUHDO_CONFIG["SPELL_TRACE"]["STORED_SETTINGS"] == nil) then
VUHDO_CONFIG["SPELL_TRACE"]["STORED_SETTINGS"] = { };
end
if (VUHDO_CONFIG["SPELL_TRACE"]["STORED_SETTINGS"][aSpellName] == nil) then
VUHDO_CONFIG["SPELL_TRACE"]["STORED_SETTINGS"][aSpellName] = {
["isMine"] = VUHDO_CONFIG["SPELL_TRACE"]["isMine"],
["isOthers"] = VUHDO_CONFIG["SPELL_TRACE"]["isOthers"],
}
end
end
--
local function VUHDO_addSpellTraceSpellIds(aVersion, ...)
if ((VUHDO_CONFIG["SPELL_TRACE"].version or 0) < aVersion) then
VUHDO_CONFIG["SPELL_TRACE"].version = aVersion;
local tArg;
for tCnt = 1, select("#", ...) do
tArg = select(tCnt, ...);
if (type(tArg) == "number") then
-- make sure the spell ID is still added as a string
-- otherwise getKeyFromValue look-ups w/ spell ID string fail later
tArg = tostring(tArg);
end
VUHDO_tableUniqueAdd(VUHDO_CONFIG["SPELL_TRACE"]["STORED"], tArg);
end
end
end
--
local VUHDO_DEFAULT_CONFIG = {
["VERSION"] = 4,
......@@ -568,6 +611,13 @@ local VUHDO_DEFAULT_CONFIG = {
},
},
["SPELL_TRACE"] = {
["isMine"] = true,
["isOthers"] = false,
["SELECTED"] = "",
["STORED"] = { },
},
["THREAT"] = {
["AGGRO_REFRESH_MS"] = 300,
["AGGRO_TEXT_LEFT"] = ">>",
......@@ -706,6 +756,13 @@ local VUHDO_DEFAULT_CU_DE_STORED_SETTINGS = {
local VUHDO_DEFAULT_SPELL_TRACE_STORED_SETTINGS = {
["isMine"] = true,
["isOthers"] = false,
};
VUHDO_DEFAULT_POWER_TYPE_COLORS = {
[VUHDO_UNIT_POWER_MANA] = VUHDO_makeFullColor(0, 0, 1, 1, 0, 0, 1, 1),
[VUHDO_UNIT_POWER_RAGE] = VUHDO_makeFullColor(1, 0, 0, 1, 1, 0, 0, 1),
......@@ -1433,6 +1490,28 @@ function VUHDO_loadDefaultConfig()
VUHDO_CONFIG["CUSTOM_DEBUFF"]["STORED"][tIndex] = nil;
end
-- add default spells to track with spell trace
VUHDO_addSpellTraceSpellIds(1,
-- Shaman
1064, -- Chain Heal
-- Priest
200128, -- Trail of Light
34861, -- Holy Word: Sanctify
596, -- Prayer of Healing
132157, -- Holy Nova
194509 -- Power Word: Radiance
);
for tIndex, tName in pairs(VUHDO_CONFIG["SPELL_TRACE"]["STORED"]) do
VUHDO_spellTraceAddDefaultSettings(tName);
VUHDO_CONFIG["SPELL_TRACE"]["STORED_SETTINGS"][tName] = VUHDO_ensureSanity(
"SPELL_TRACE.STORED_SETTINGS",
VUHDO_CONFIG["SPELL_TRACE"]["STORED_SETTINGS"][tName],
VUHDO_DEFAULT_SPELL_TRACE_STORED_SETTINGS
);
end
if (VUHDO_POWER_TYPE_COLORS == nil) then
VUHDO_POWER_TYPE_COLORS = VUHDO_decompressOrCopy(VUHDO_DEFAULT_POWER_TYPE_COLORS);
end
......
......@@ -88,8 +88,14 @@ local VUHDO_DEFAULT_PROFILES = {
["xAdjust"] = -2,
["max_num"] = 3,
},
["SPELL_TRACE"] = {
["isMine"] = true,
["isOthers"] = false,
["selected"] = "",
},
["SHOW_TEXT_OVERHEAL"] = true,
},
["LOCKED"] = false,
["HARDLOCKED"] = true,
["PANEL_POSITIONS"] = {
......@@ -731,6 +737,11 @@ local VUHDO_DEFAULT_PROFILES = {
["HIDE_EMPTY_BUTTONS"] = false,
["LOCK_CLICKS_THROUGH"] = false,
["SHOW_TEXT_OVERHEAL"] = true,
["SPELL_TRACE"] = {
["isMine"] = true,
["isOthers"] = false,
["selected"] = "",
},
},
["LOCKED"] = false,
["HARDLOCKED"] = true,
......@@ -2518,6 +2529,10 @@ function VUHDO_loadProfileNoInit(aName)
VUHDO_CONFIG["CUSTOM_DEBUFF"]["STORED"] = VUHDO_deepCopyTable(tProfile["CONFIG"]["CUSTOM_DEBUFF"]["STORED"]);
end
if tProfile["CONFIG"]["SPELL_TRACE"] and tProfile["CONFIG"]["SPELL_TRACE"]["STORED"] and VUHDO_CONFIG["SPELL_TRACE"] then
VUHDO_CONFIG["SPELL_TRACE"]["STORED"] = VUHDO_deepCopyTable(tProfile["CONFIG"]["SPELL_TRACE"]["STORED"]);
end
VUHDO_fixDominantProfileSettings(tProfile);
VUHDO_CONFIG["CURRENT_PROFILE"] = aName;
VUHDO_Msg(VUHDO_I18N_PROFILE_LOADED .. aName);
......
......@@ -1115,4 +1115,6 @@ VUHDO_I18N_SPEC_4 = "Spec 4";
VUHDO_I18N_ANNOUNCE_MASS_RES = "'Mass' Resurrection\nAnnouncement";
VUHDO_I18N_SPELL_TRACE = "Spell Trace";
VUHDO_I18N_SPELL_TRACE_EDIT_BOX = "Enter spell name or ID to trace";
VUHDO_I18N_SPELL_TRACE_LIST = "Spell Trace List";
......@@ -1116,4 +1116,6 @@ VUHDO_I18N_SPEC_4 = "Spec 4";
VUHDO_I18N_ANNOUNCE_MASS_RES = "'Mass' Resurrection\nAnnouncement";
VUHDO_I18N_SPELL_TRACE = "Spell Trace";
VUHDO_I18N_SPELL_TRACE_EDIT_BOX = "Enter spell name or ID to trace";
VUHDO_I18N_SPELL_TRACE_LIST = "Spell Trace List";
......@@ -1130,4 +1130,6 @@ VUHDO_I18N_SPEC_4 = "Spec 4";
VUHDO_I18N_ANNOUNCE_MASS_RES = "'Mass' Resurrection\nAnnouncement";
VUHDO_I18N_SPELL_TRACE = "Spell Trace";
VUHDO_I18N_SPELL_TRACE_EDIT_BOX = "Enter spell name or ID to trace";
VUHDO_I18N_SPELL_TRACE_LIST = "Spell Trace List";
......@@ -1131,4 +1131,6 @@ VUHDO_I18N_SPEC_4 = "Spec 4";
VUHDO_I18N_ANNOUNCE_MASS_RES = "'Mass' Resurrection\nAnnouncement";
VUHDO_I18N_SPELL_TRACE = "Spell Trace";
VUHDO_I18N_SPELL_TRACE_EDIT_BOX = "Enter spell name or ID to trace";
VUHDO_I18N_SPELL_TRACE_LIST = "Spell Trace List";
......@@ -1295,4 +1295,6 @@ VUHDO_I18N_SPEC_4 = "Spec 4";
VUHDO_I18N_ANNOUNCE_MASS_RES = "'Mass' Resurrection\nAnnouncement";
VUHDO_I18N_SPELL_TRACE = "Spell Trace";
VUHDO_I18N_SPELL_TRACE_EDIT_BOX = "Enter spell name or ID to trace";
VUHDO_I18N_SPELL_TRACE_LIST = "Spell Trace List";
......@@ -1117,4 +1117,6 @@ VUHDO_I18N_SPEC_4 = "Spec 4";
VUHDO_I18N_ANNOUNCE_MASS_RES = "'Mass' Resurrection\nAnnouncement";
VUHDO_I18N_SPELL_TRACE = "Spell Trace";
VUHDO_I18N_SPELL_TRACE_EDIT_BOX = "Enter spell name or ID to trace";
VUHDO_I18N_SPELL_TRACE_LIST = "Spell Trace List";
......@@ -1117,4 +1117,6 @@ VUHDO_I18N_SPEC_4 = "Spec 4";
VUHDO_I18N_ANNOUNCE_MASS_RES = "'Mass' Resurrection\nAnnouncement";
VUHDO_I18N_SPELL_TRACE = "Spell Trace";
VUHDO_I18N_SPELL_TRACE_EDIT_BOX = "Enter spell name or ID to trace";
VUHDO_I18N_SPELL_TRACE_LIST = "Spell Trace List";
local _;
local VUHDO_COMBO_MODEL = nil;
local VUHDO_MINE_MODEL = nil;
local VUHDO_OTHERS_MODEL = nil;
local VUHDO_SPELL_TRACE_SORTABLE = { };
--
local tStoredName;
local tIndex;
local tSpellNameById;
function VUHDO_initSpellTraceComboModel()
VUHDO_SPELL_TRACE_SORTABLE = { };
for _, tStoredName in pairs(VUHDO_CONFIG["SPELL_TRACE"]["STORED"]) do
tinsert(VUHDO_SPELL_TRACE_SORTABLE, tStoredName);
end
table.sort(VUHDO_SPELL_TRACE_SORTABLE,
function(tSpell, tAnotherSpell)
return VUHDO_resolveSpellId(tSpell) < VUHDO_resolveSpellId(tAnotherSpell);
end
);
VUHDO_COMBO_MODEL = { };
for tIndex, tStoredName in ipairs(VUHDO_SPELL_TRACE_SORTABLE) do
tSpellNameById = VUHDO_resolveSpellId(tStoredName);
if (tSpellNameById ~= tStoredName) then
VUHDO_COMBO_MODEL[tIndex] = { tStoredName, "[" .. tStoredName .. "] " .. tSpellNameById };
else
VUHDO_COMBO_MODEL[tIndex] = { tStoredName, tStoredName };
end
end
end
--
function VUHDO_setupSpellTraceComboModel(aComboBox)
VUHDO_initSpellTraceComboModel();
VUHDO_notifySpellTraceSelect(aComboBox, VUHDO_CONFIG.SPELL_TRACE.SELECTED);
VUHDO_setComboModel(aComboBox, "VUHDO_CONFIG.SPELL_TRACE.SELECTED", VUHDO_COMBO_MODEL);
VUHDO_lnfComboBoxInitFromModel(aComboBox);
end
--
function VUHDO_notifySpellTraceSelect(aComboBox, aValue)
if (VuhDoNewOptionsGeneralSpellTraceStorePanelEditBox ~= nil and aValue ~= nil) then
VuhDoNewOptionsGeneralSpellTraceStorePanelEditBox:SetText(aValue);
else
VuhDoNewOptionsGeneralSpellTraceStorePanelEditBox:SetText("");
end
end
--
local tValue;
local tIndex;
local tPanelName;
local tCheckButton;
local tComboBox;
function VUHDO_spellTraceUpdateEditBox(anEditBox)
tValue = anEditBox:GetText();
tIndex = VUHDO_tableGetKeyFromValue(VUHDO_CONFIG["SPELL_TRACE"]["STORED"], tValue);
if (tIndex ~= nil) then
anEditBox:SetTextColor(1, 1, 1, 1);
tPanelName = anEditBox:GetParent():GetName();
tCheckButton = _G[tPanelName .. "MineCheckButton"];
VUHDO_lnfSetModel(tCheckButton,
"VUHDO_CONFIG.SPELL_TRACE.STORED_SETTINGS." .. tValue .. ".isMine");
VUHDO_lnfCheckButtonInitFromModel(tCheckButton);
tCheckButton = _G[tPanelName .. "OthersCheckButton"];
VUHDO_lnfSetModel(tCheckButton,
"VUHDO_CONFIG.SPELL_TRACE.STORED_SETTINGS." .. tValue .. ".isOthers");
VUHDO_lnfCheckButtonInitFromModel(tCheckButton);
else
anEditBox:SetTextColor(0.8, 0.8, 1, 1);
tPanelName = anEditBox:GetParent():GetName();
VUHDO_MINE_MODEL = VUHDO_CONFIG.SPELL_TRACE.isMine;
VUHDO_OTHERS_MODEL = VUHDO_CONFIG.SPELL_TRACE.isOthers;
tCheckButton = _G[tPanelName .. "MineCheckButton"];
VUHDO_lnfSetModel(tCheckButton, "VUHDO_MINE_MODEL");
VUHDO_lnfCheckButtonInitFromModel(tCheckButton);
tCheckButton = _G[tPanelName .. "OthersCheckButton"];
VUHDO_lnfSetModel(tCheckButton, "VUHDO_OTHERS_MODEL");
VUHDO_lnfCheckButtonInitFromModel(tCheckButton);
end
end
--
local tEditBox;
local tValue;
local tIndex;
local tCheckButton;
local tPanelName;
function VUHDO_saveSpellTraceOnClick(aButton)
tEditBox = _G[aButton:GetParent():GetName() .. "EditBox"];
tValue = strtrim(tEditBox:GetText());
tIndex = VUHDO_tableGetKeyFromValue(VUHDO_CONFIG["SPELL_TRACE"]["STORED"], tValue);
if (tIndex == nil and #tValue > 0) then
tinsert(VUHDO_CONFIG["SPELL_TRACE"]["STORED"], tValue);
VuhDoNewOptionsGeneralSpellTraceStorePanelEditBox:SetText(tValue);
VuhDoNewOptionsGeneralSpellTraceStorePanelEditBox:SetTextColor(1, 1, 1);
end
tPanelName = aButton:GetParent():GetName();
if (VUHDO_CONFIG["SPELL_TRACE"]["STORED_SETTINGS"][tValue] == nil) then
VUHDO_CONFIG["SPELL_TRACE"]["STORED_SETTINGS"][tValue] = { };
end
tCheckButton = _G[tPanelName .. "MineCheckButton"];
VUHDO_CONFIG["SPELL_TRACE"]["STORED_SETTINGS"][tValue].isMine = VUHDO_forceBooleanValue(tCheckButton:GetChecked());
tCheckButton = _G[tPanelName .. "OthersCheckButton"];
VUHDO_CONFIG["SPELL_TRACE"]["STORED_SETTINGS"][tValue].isOthers = VUHDO_forceBooleanValue(tCheckButton:GetChecked());
VUHDO_CONFIG["SPELL_TRACE"]["SELECTED"] = tValue;
VUHDO_initSpellTraceComboModel();
VUHDO_spellTraceUpdateEditBox(VuhDoNewOptionsGeneralSpellTraceStorePanelEditBox);
VuhDoNewOptionsGeneralSpellTrace:Hide();
VuhDoNewOptionsGeneralSpellTrace:Show();
end
--
function VUHDO_deleteSpellTraceOnClick(aButton)
local tEditBox = _G[aButton:GetParent():GetName() .. "EditBox"];
local tValue = strtrim(tEditBox:GetText());
local tIndex = VUHDO_tableGetKeyFromValue(VUHDO_CONFIG["SPELL_TRACE"]["STORED"], tValue);
if (tIndex ~= nil and #tValue > 0) then
tremove(VUHDO_CONFIG["SPELL_TRACE"]["STORED"], tIndex);
VUHDO_CONFIG["SPELL_TRACE"]["STORED_SETTINGS"][tValue] = nil;
VUHDO_Msg(VUHDO_I18N_SPELL_TRACE .. " on spell \"" .. tValue .. "\" removed.", 1, 0.4, 0.4);
else
VUHDO_Msg(VUHDO_I18N_SPELL_TRACE .. " on spell \"" .. tValue .. "\" doesn't exist.", 1, 0.4, 0.4);
end
VUHDO_initSpellTraceComboModel();
VUHDO_spellTraceUpdateEditBox(VuhDoNewOptionsGeneralSpellTraceStorePanelEditBox);
VuhDoNewOptionsGeneralSpellTrace:Hide();
VuhDoNewOptionsGeneralSpellTrace:Show();
VuhDoNewOptionsGeneralSpellTraceStorePanelEditBox:SetText("");
end
......@@ -7,7 +7,7 @@
<Frame name="$parentMainPanel" inherits="VuhDoPanelTemplate">
<Size>
<AbsDimension x="270" y="115" />
<AbsDimension x="125" y="63" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
......@@ -17,7 +17,8 @@
</Anchor>
</Anchors>
<Frames>
<CheckButton name="$parentShowSpellTraceCheckButton" text="VUHDO_I18N_SPELL_TRACE" inherits="VuhDoCheckButtonTemplate">
<CheckButton name="$parentShowSpellTraceCheckButton" text="VUHDO_I18N_ENABLE" inherits="VuhDoCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
......@@ -36,15 +37,184 @@
</Frames>
</Frame>
<Frame name="$parentStorePanel" inherits="VuhDoPanelTemplate">
<Size>
<AbsDimension x="235" y="213" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="280" y="-13" />
</Offset>
</Anchor>
</Anchors>
<Frames>
<Frame name="$parentListLabel" inherits="VuhDoLabelFrameTemplate">
<Size>
<AbsDimension x="120" y="18" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="43" y="-65" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLabel" text="VUHDO_I18N_SPELL_TRACE_LIST" justifyH="LEFT" inherits="VuDoDefaultFontTemplate">
</FontString>
</Layer>
</Layers>
</Frame>
<Button name="$parentSelectComboBox" inherits="VuhDoScrollComboBoxTemplate">
<Size>
<AbsDimension x="180" y="1" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="43" y="-95" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnShow>
VUHDO_lnfPatchFont(self, "Text");
VUHDO_setupSpellTraceComboModel(self);
</OnShow>
<OnLoad>
self:SetAttribute("custom_function", VUHDO_notifySpellTraceSelect);
</OnLoad>
</Scripts>
</Button>
<Frame name="$parentTitleLabel" inherits="VuhDoLabelFrameTemplate">
<Layers>
<Layer>
<FontString name="$parentLabel" text="VUHDO_I18N_STORE_DELETE" inherits="VuDoDefaultTitleFontTemplate">
</FontString>
</Layer>
</Layers>
</Frame>
<Frame name="$parentEditLabel" inherits="VuhDoLabelFrameTemplate">
<Size>
<AbsDimension x="120" y="18" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="18" y="-28" />
</Offset>
</Anchor>
</Anchors>
<Layers>
<Layer>
<FontString name="$parentLabel" text="VUHDO_I18N_SPELL_TRACE_EDIT_BOX" justifyH="LEFT" inherits="VuDoDefaultFontTemplate">
</FontString>
</Layer>
</Layers>
</Frame>
<EditBox name="$parentEditBox" inherits="VuhDoEditBoxTemplate">
<Size>
<AbsDimension x="205" y="32" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="18" y="-36" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnShow>
VUHDO_lnfPatchFont(self, "Hint"); VUHDO_lnfPatchFont(self, "");
if (VUHDO_CONFIG.SPELL_TRACE.SELECTED ~= nil) then
self:SetText(VUHDO_CONFIG.SPELL_TRACE.SELECTED);
end
</OnShow>
<OnTextChanged>
if (self:GetText() ~= "") then
VUHDO_spellTraceUpdateEditBox(self);
end
</OnTextChanged>
</Scripts>
</EditBox>
<CheckButton name="$parentMineCheckButton" text="VUHDO_I18N_MINE" inherits="VuhDoCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="13" y="-138" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
VUHDO_lnfSetTooltip(self, VUHDO_I18N_TT.K523);
</OnLoad>
</Scripts>
</CheckButton>
<CheckButton name="$parentOthersCheckButton" text="VUHDO_I18N_OTHERS" inherits="VuhDoCheckButtonTemplate">
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="125" y="-138" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnLoad>
VUHDO_lnfSetTooltip(self, VUHDO_I18N_TT.K528);
</OnLoad>
</Scripts>
</CheckButton>
<Button name="$parentSaveButton" text="VUHDO_I18N_SAVE" inherits="VuhDoButtonTemplate">
<Size>
<AbsDimension x="100" y="32" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="13" y="-173" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
VUHDO_saveSpellTraceOnClick(self);
</OnClick>
</Scripts>
</Button>
<Button name="$parentDeleteButton" text="VUHDO_I18N_DELETE" inherits="VuhDoButtonTemplate">
<Size>
<AbsDimension x="100" y="32" />
</Size>
<Anchors>
<Anchor point="TOPLEFT">
<Offset>
<AbsDimension x="125" y="-173" />
</Offset>
</Anchor>
</Anchors>
<Scripts>
<OnClick>
VUHDO_deleteSpellTraceOnClick(self);
</OnClick>
</Scripts>
</Button>
</Frames>
</Frame>
</Frames>
<Scripts>
<OnLoad>
</OnLoad>
<OnShow>
</OnShow>
<OnHide>
</OnHide>
</Scripts>
</Frame>
</Ui>
local pairs = pairs;
local VUHDO_TRACE_SPELLS = {
[1064] = { -- Chain Heal
["mine"] = true,
["others"] = false,
},
[200128] = { -- Trail of Light
["mine"] = true,
["others"] = false,
},
[34861] = { -- Holy Word: Sanctify
["mine"] = true,
["others"] = false,
},
[596] = { -- Prayer of Healing
["mine"] = true,
["others"] = false,
},
[194509] = { -- Power Word: Radiance
["mine"] = true,
["others"] = false,
},
[132157] = { -- Holy Nova
["mine"] = true,
["others"] = false,
},
};
local VUHDO_ACTIVE_TRACE_SPELLS = {
-- [<unit GUID>] = {
-- ["latest"] = <latest trace spell ID>,
......@@ -46,12 +19,14 @@ local VUHDO_PLAYER_GUID = -1;
local VUHDO_RAID_GUIDS = { };
local VUHDO_INTERNAL_TOGGLES = { };
local sShowSpellTrace = nil;
local sSpellTraceStoredSettings = nil;
function VUHDO_spellTraceInitLocalOverrides()
VUHDO_PLAYER_GUID = UnitGUID("player");
VUHDO_RAID_GUIDS = _G["VUHDO_RAID_GUIDS"];
VUHDO_INTERNAL_TOGGLES = _G["VUHDO_INTERNAL_TOGGLES"];
sShowSpellTrace = VUHDO_CONFIG["SHOW_SPELL_TRACE"];
sSpellTraceStoredSettings = VUHDO_CONFIG["SPELL_TRACE"]["STORED_SETTINGS"];
end
......@@ -61,9 +36,9 @@ end
function VUHDO_parseCombatLogSpellTrace(aMessage, aSrcGuid, aDstGuid, aSpellName, aSpellId)
if not VUHDO_INTERNAL_TOGGLES[37] or not sShowSpellTrace or
aMessage ~= "SPELL_HEAL" or not VUHDO_TRACE_SPELLS[aSpellId] or
(aSrcGuid ~= VUHDO_PLAYER_GUID and not VUHDO_TRACE_SPELLS[aSpellId]["others"]) or
(aSrcGuid == VUHDO_PLAYER_GUID and not VUHDO_TRACE_SPELLS[aSpellId]["mine"]) or
aMessage ~= "SPELL_HEAL" or not sSpellTraceStoredSettings[aSpellId] or
(aSrcGuid ~= VUHDO_PLAYER_GUID and not sSpellTraceStoredSettings[aSpellId]["isOthers"]) or
(aSrcGuid == VUHDO_PLAYER_GUID and not sSpellTraceStoredSettings[aSpellId]["isMine"]) or
not VUHDO_RAID_GUIDS[aDstGuid] then
return;
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment