- Attempt to fix some plugins loading after details! start and failing to install.

- Fixed Vamguard plugin not showing debuffs on tanks.
- Fixed a bug within Atal'Dazar dungeon where in some cases adds damage where considered friendly fire.
This commit is contained in:
Tercioo
2019-03-06 15:22:09 -03:00
parent ab333051bc
commit 3c62ffbf5b
5 changed files with 63 additions and 15 deletions
+4
View File
@@ -167,6 +167,10 @@ do
["yellowgreen"] = {0.603922, 0.803922, 0.196078, 1}
}
function DF:GetDefaultColorList()
return defaultColors
end
for colorName, colorTable in pairs (defaultColors) do
DF.alias_text_colors [colorName] = colorTable
end
+1 -1
View File
@@ -1,5 +1,5 @@
local dversion = 140
local dversion = 141
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary (major, minor)
+8 -7
View File
File diff suppressed because one or more lines are too long
+19 -2
View File
@@ -268,7 +268,7 @@
["141265"] = true,
}
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--> internal functions
@@ -447,6 +447,23 @@
end
end
elseif (_current_encounter_id == 2087) then --Yazma - Atal'Dazar --REMOVE ON 9.0 LAUNCH
--rename the add created by the soulrend ability
if (alvo_serial) then
local npcid = _select (6, _strsplit ("-", alvo_serial))
if (npcid == "125828") then --soulrend add
alvo_name = "Soulrend Add"
end
end
if (who_serial) then
local npcid = _select (6, _strsplit ("-", who_serial))
if (npcid == "125828") then --soulrend add
who_name = "Soulrend Add"
end
end
elseif (_current_encounter_id == 2122 or _current_encounter_id == 2135) then --g'huun and mythrax --REMOVE ON 9.0 LAUNCH
--if (alvo_serial:match ("^Creature%-0%-%d+%-%d+%-%d+%-103679%-%w+$")) then --soul effigy (warlock) --50% more slow than the method below
@@ -614,7 +631,7 @@
--> last event
este_jogador.last_event = _tempo
------------------------------------------------------------------------------------------------
--> group checks and avoidance
+31 -5
View File
@@ -557,7 +557,16 @@ local function CreatePluginFrames (data)
local dblock = tframe.debuffs_blocks [i]
if (dblock.support.spellid == spellid) then
local debuff_name = GetSpellInfo (spellid)
local _, _, icon, count, _, duration, expirationTime = _UnitDebuff (who_name, debuff_name)
local icon, count, duration, expirationTime = "", 0, 0, 0
for i = 1, 40 do --doq
local auraName, icon1, count1, _, duration1, expirationTime1 = _UnitDebuff (who_name, i)
if (auraName == debuff_name) then
icon, count, duration, expirationTime = icon1, count1, duration1, expirationTime1
break
end
end
dblock.texture:SetTexture (icon)
if (count and count > 0) then
@@ -604,17 +613,28 @@ local function CreatePluginFrames (data)
function Vanguard:DebuffApplied (who_name, spellid)
local tank_index = Vanguard.TankHashNames [who_name]
if (tank_index) then
local tframe = Vanguard.TankBlocks [tank_index]
if (tframe.debuffs_using < 3) then
local next_index = tframe.debuffs_next_index
if (next_index) then
local dblock = tframe.debuffs_blocks [next_index]
local icon, count, duration, expirationTime
local debuff_name = GetSpellInfo (spellid)
local _, _, icon, count, _, duration, expirationTime = _UnitDebuff (who_name, debuff_name)
for i = 1, 40 do --doq
local auraName, icon1, count1, _, duration1, expirationTime1 = _UnitDebuff (who_name, i)
if (auraName == debuff_name) then
icon, count, duration, expirationTime = icon1, count1, duration1, expirationTime1
break
end
end
if (not icon) then
return
end
@@ -679,7 +699,7 @@ local ignored_debuffs = {
function Vanguard:TrackDebuffsAlreadyApplied()
for tank_name, block_index in pairs (Vanguard.TankHashNames) do
for i = 1, 41 do
local _, _, icon, count, _, duration, expirationTime, unitCaster, _, _, spellid = _UnitDebuff (tank_name, i)
local auraName, icon, count, _, duration, expirationTime, unitCaster, _, _, spellid = _UnitDebuff (tank_name, i)
if (icon and spellid and not ignored_debuffs [spellid]) then
Vanguard:DebuffApplied (tank_name, spellid)
end
@@ -760,10 +780,16 @@ Vanguard.OpenOptionsPanel = function()
VanguardOptionsWindow:Show()
end
local CombatLogGetCurrentEventInfo = CombatLogGetCurrentEventInfo
function Vanguard:OnEvent (_, event, arg1, token, time, who_serial, who_name, who_flags, _, alvo_serial, alvo_name, alvo_flags, _, spellid, spellname, spellschool, tipo)
if (event == "COMBAT_LOG_EVENT_UNFILTERED") then
local arg1, token, time, who_serial, who_name, who_flags, _, alvo_serial, alvo_name, alvo_flags, _, spellid, spellname, spellschool, tipo = CombatLogGetCurrentEventInfo()
--print (token, Vanguard.TankHashNames [alvo_name], alvo_name, tipo, Vanguard.Running)
if (token == "SPELL_AURA_APPLIED") then
if (Vanguard.TankHashNames [alvo_name] and tipo == "DEBUFF" and Vanguard.Running and not ignored_debuffs [spellid]) then
Vanguard:DebuffApplied (alvo_name, spellid)