- Fixing Slash and GBoM on dungeon encounters.

- Solving problems if somebody enter on a ongoing dungeon and have to detect already applyied buffs.
- If the buff owner isn't found, try to detect by unitaura query.
- framework update to v41.
This commit is contained in:
Tercio
2016-08-19 20:10:28 -03:00
parent 76ccb4a73f
commit 5cab4976bd
10 changed files with 720 additions and 399 deletions
+2 -1
View File
@@ -18,7 +18,8 @@ do
["WARRIOR"] = {0.78, 0.61, 0.43},
["DEATHKNIGHT"] = {0.77, 0.12, 0.23},
["MONK"] = {0.0, 1.00, 0.59},
["DEMONHUNTER"] = {0.64, 0.19, 0.79},
["aliceblue"] = {0.941176, 0.972549, 1, 1},
["antiquewhite"] = {0.980392, 0.921569, 0.843137, 1},
["aqua"] = {0, 1, 1, 1},
+3 -1
View File
@@ -1,5 +1,5 @@
local dversion = 37
local dversion = 41
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary (major, minor)
@@ -113,6 +113,8 @@ local embed_functions = {
"CreateInCombatTexture",
"CreateAnimationHub",
"CreateAnimation",
"CreateScrollBox",
"CreateBorder",
}
DF.table = {}
+6 -1
View File
@@ -3050,8 +3050,11 @@ local gframe_update = function (self, lines)
end
end
self.MaxValue = max_value
local o = 1
local lastvalue = self:GetHeight()/2
max_value = math.max (max_value, 0.0000001)
for i = 1, min (amtlines, self._maxlines) do
@@ -3096,6 +3099,8 @@ function DF:CreateGFrame (parent, w, h, linewidth, onenter, onleave, member, nam
f.Reset = gframe_reset
f.UpdateLines = gframe_update
f.MaxValue = 0
f._lines = {}
f._onenter_line = onenter
@@ -3522,7 +3527,7 @@ DF.ScrollBoxFunctions.Refresh = function (self)
local okay, totalLines = pcall (self.refresh_func, self, self.data, offset, #self.Frames)
if (not okay) then
error ("Details! FrameWork: Refresh(): " .. result)
error ("Details! FrameWork: Refresh(): " .. totalLines)
end
for _, frame in ipairs (self.Frames) do
+1 -1
View File
@@ -655,7 +655,7 @@ function DF:NewTextEntry (parent, container, name, member, w, h, func, param1, p
OnTextChanged = {},
OnTabPressed = {},
}
TextEntryObject.editbox:SetScript ("OnEnter", OnEnter)
TextEntryObject.editbox:SetScript ("OnLeave", OnLeave)
TextEntryObject.editbox:SetScript ("OnHide", OnHide)
+7 -13
View File
@@ -3,9 +3,9 @@
_ = nil
_detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0")
_detalhes.build_counter = 2787 --it's 2781 for release
_detalhes.userversion = "v5.21"
_detalhes.realversion = 110 --core version
_detalhes.build_counter = 2854 --it's 2781 for release
_detalhes.userversion = "v7.0.3"
_detalhes.realversion = 111 --core version
_detalhes.version = _detalhes.userversion .. " (core " .. _detalhes.realversion .. ")"
Details = _detalhes
@@ -21,20 +21,14 @@ do
local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" )
--[[
|cFFFFFF00v5.17 (|cFFFFCC00August 10, 2016|r|cFFFFFF00)|r:\n\n
|cFFFFFF00-|r Fix for the options panel background when using Classic panels.\n\n
|cFFFFFF00-|r Tooltips are now slightly bigger.\n\n
|cFFFFFF00-|r Fix for bookmark background where sometimes it has a light silver color.\n\n
|cFFFFFF00-|r Fix for channel cast on Streamer Plugin.\n\n
|cFFFFFF00-|r Legion followers fix.\n\n
|cFFFFFF00-|r boss detection for Legion dungeons.\n\n
|cFFFFFF00-|r priest spec detection review (thanks Yakumile-Azralon).\n\n
|cFFFFFF00-|r Warlock's Grimoire of Synergy buff uptime fix.\n\n
|cFFFFFF00v5.17 (|cFFFFCC00August 19, 2016|r|cFFFFFF00)|r:\n\n
|cFFFFFF00-|r Attempt to fix GBoM and Stormlash on dungeon boss fights.\n\n
--]]
--
--Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v5.10c (|cFFFFCC00July 22, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Trying a workaround for the wow client's texture cache bug which causes FPS drops, please delete the file 'spec_icons_normal.TGA' from details/image folder.\n\n|cFFFFFF00v5.10b (|cFFFFCC00July 21, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed warlock's Soul Effigy.\n\n|cFFFFFF00v5.10a (|cFFFFCC00July 20, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue with Calc Leech plugin.\n\n|cFFFFFF00v5.10 (|cFFFFCC00July 19, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Using .BLP format for images. If you have FPS drops caused by Details!, delete ALL .TGA files inside the folder Details/Images/\n\n|cFFFFFF00v5.8 (|cFFFFCC00July 11, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Big framework update. May have some bugs, please report to us if you find any.\n\n|cFFFFFF00v5.8 (|cFFFFCC00June 27, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Energy and Resources are working properly now.\n\n|cFFFFFF00-|r Added raid information for The Emerald Nightmare.\n\n|cFFFFFF00v5.7 (|cFFFFCC00June 16, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Most of the raid plugins got added on this version.\n\n|cFFFFFF00-|r Plugin 'Damage, The Game!' also got damage goals updated.\n\n|cFFFFFF00v5.5 (|cFFFFCC00June 03, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Default skin is now 'Safe Skin Legion Beta' which helps a little with the disabled texture issue.\n|cFFFFFF00-|r If you're using another skin, you may change at the options panel /details options > Skin Selection.\n|cFFFFFF00-|r You also can disable the class icons at Bars: General > Icon File."
Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v5.21 (|cFFFFCC00August 14, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fix for Monk's Soothing Mist on Streamer Plugin.\n\n|cFFFFFF00v5.20 (|cFFFFCC00August 13, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Warlock's Grimoire of Synergy buff uptime fix.\n\n|cFFFFFF00-|r Fix for the options panel background when using Classic panels.\n\n|cFFFFFF00-|r Tooltips are now slightly bigger.\n\n|cFFFFFF00-|r Fix for bookmark background where sometimes it has a light silver color.\n\n|cFFFFFF00-|r Fix for channel cast on Streamer Plugin.\n\n|cFFFFFF00-|r Legion followers fix.\n\n|cFFFFFF00-|r Boss detection for Legion dungeons.\n\n|cFFFFFF00-|r Priest spec detection review (thanks Yakumile-Azralon).\n\n|cFFFFFF00v5.15 (|cFFFFCC00August 5, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r fix for an error which happen sometimes during encounter start.\n\n|cFFFFFF00v5.14 (|cFFFFCC00August 2, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added outline option for bar's Left Text (experimental).\n\n|cFFFFFF00-|r 'Minimalistic' is once again the default skin for new windows, changed from the 'Safe Beta Skin'.\n\n|cFFFFFF00-|r Fixed some issues with spec detection and LibGroupInSpecT-1.1 has need enabled back again.\n\n|cFFFFFF00-|r Fixed an issue with micro displays not loading settings after a logon.\n\n|cFFFFFF00-|r Another wave of workarounds to prevent the client image cache bug.\n\n|cFFFFFF00-|r fixed the spam of 'segment not added to overall'.\n\n|cFFFFFF00-|r stormlash and blessing of might workarouds.\n\n|cFFFFFF00-|r warrior rampage fix.\n\n|cFFFFFF00-|r hunter throw axe fix.\n\n|cFFFFFF00v5.10c (|cFFFFCC00July 22, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Trying a workaround for the wow client's texture cache bug which causes FPS drops, please delete the file 'spec_icons_normal.TGA' from details/image folder.\n\n|cFFFFFF00v5.10b (|cFFFFCC00July 21, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed warlock's Soul Effigy.\n\n|cFFFFFF00v5.10a (|cFFFFCC00July 20, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue with Calc Leech plugin.\n\n|cFFFFFF00v5.10 (|cFFFFCC00July 19, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Using .BLP format for images. If you have FPS drops caused by Details!, delete ALL .TGA files inside the folder Details/Images/\n\n|cFFFFFF00v5.8 (|cFFFFCC00July 11, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Big framework update. May have some bugs, please report to us if you find any.\n\n|cFFFFFF00v5.8 (|cFFFFCC00June 27, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Energy and Resources are working properly now.\n\n|cFFFFFF00-|r Added raid information for The Emerald Nightmare.\n\n|cFFFFFF00v5.7 (|cFFFFCC00June 16, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Most of the raid plugins got added on this version.\n\n|cFFFFFF00-|r Plugin 'Damage, The Game!' also got damage goals updated.\n\n|cFFFFFF00v5.5 (|cFFFFCC00June 03, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Default skin is now 'Safe Skin Legion Beta' which helps a little with the disabled texture issue.\n|cFFFFFF00-|r If you're using another skin, you may change at the options panel /details options > Skin Selection.\n|cFFFFFF00-|r You also can disable the class icons at Bars: General > Icon File."
Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v7.0.3 (|cFFFFCC00August 19, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Attempt to fix GBoM and Stormlash on dungeon boss fights.\n\n|cFFFFFF00v5.21 (|cFFFFCC00August 14, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fix for Monk's Soothing Mist on Streamer Plugin.\n\n|cFFFFFF00v5.20 (|cFFFFCC00August 13, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Warlock's Grimoire of Synergy buff uptime fix.\n\n|cFFFFFF00-|r Fix for the options panel background when using Classic panels.\n\n|cFFFFFF00-|r Tooltips are now slightly bigger.\n\n|cFFFFFF00-|r Fix for bookmark background where sometimes it has a light silver color.\n\n|cFFFFFF00-|r Fix for channel cast on Streamer Plugin.\n\n|cFFFFFF00-|r Legion followers fix.\n\n|cFFFFFF00-|r Boss detection for Legion dungeons.\n\n|cFFFFFF00-|r Priest spec detection review (thanks Yakumile-Azralon).\n\n|cFFFFFF00v5.15 (|cFFFFCC00August 5, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r fix for an error which happen sometimes during encounter start.\n\n|cFFFFFF00v5.14 (|cFFFFCC00August 2, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added outline option for bar's Left Text (experimental).\n\n|cFFFFFF00-|r 'Minimalistic' is once again the default skin for new windows, changed from the 'Safe Beta Skin'.\n\n|cFFFFFF00-|r Fixed some issues with spec detection and LibGroupInSpecT-1.1 has need enabled back again.\n\n|cFFFFFF00-|r Fixed an issue with micro displays not loading settings after a logon.\n\n|cFFFFFF00-|r Another wave of workarounds to prevent the client image cache bug.\n\n|cFFFFFF00-|r fixed the spam of 'segment not added to overall'.\n\n|cFFFFFF00-|r stormlash and blessing of might workarouds.\n\n|cFFFFFF00-|r warrior rampage fix.\n\n|cFFFFFF00-|r hunter throw axe fix.\n\n|cFFFFFF00v5.10c (|cFFFFCC00July 22, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Trying a workaround for the wow client's texture cache bug which causes FPS drops, please delete the file 'spec_icons_normal.TGA' from details/image folder.\n\n|cFFFFFF00v5.10b (|cFFFFCC00July 21, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed warlock's Soul Effigy.\n\n|cFFFFFF00v5.10a (|cFFFFCC00July 20, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue with Calc Leech plugin.\n\n|cFFFFFF00v5.10 (|cFFFFCC00July 19, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Using .BLP format for images. If you have FPS drops caused by Details!, delete ALL .TGA files inside the folder Details/Images/\n\n|cFFFFFF00v5.8 (|cFFFFCC00July 11, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Big framework update. May have some bugs, please report to us if you find any.\n\n|cFFFFFF00v5.8 (|cFFFFCC00June 27, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Energy and Resources are working properly now.\n\n|cFFFFFF00-|r Added raid information for The Emerald Nightmare.\n\n|cFFFFFF00v5.7 (|cFFFFCC00June 16, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Most of the raid plugins got added on this version.\n\n|cFFFFFF00-|r Plugin 'Damage, The Game!' also got damage goals updated.\n\n|cFFFFFF00v5.5 (|cFFFFCC00June 03, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Default skin is now 'Safe Skin Legion Beta' which helps a little with the disabled texture issue.\n|cFFFFFF00-|r If you're using another skin, you may change at the options panel /details options > Skin Selection.\n|cFFFFFF00-|r You also can disable the class icons at Bars: General > Icon File."
Loc ["STRING_DETAILS1"] = "|cffffaeaeDetails!:|r "
+3 -3
View File
@@ -4356,7 +4356,7 @@ function atributo_damage:MontaDetalhesDamageDone (spellid, barra, instancia)
t1[5] = Loc ["STRING_MAXIMUM_SHORT"] .. ": " .. _detalhes:comma_value (esta_magia.n_max)
t1[6] = Loc ["STRING_AVERAGE"] .. ": " .. _detalhes:comma_value (media_normal)
t1[7] = Loc ["STRING_DPS"] .. ": " .. _detalhes:comma_value (normal_dmg/T)
t1[8] = normal_hits .. " / " .. _cstr ("%.1f", normal_hits/total_hits*100) .. "%"
t1[8] = normal_hits .. " [|cFFC0C0C0" .. _cstr ("%.1f", normal_hits/total_hits*100) .. "%|r]"
end
@@ -4372,7 +4372,7 @@ function atributo_damage:MontaDetalhesDamageDone (spellid, barra, instancia)
end
critical_table.p = esta_magia.c_amt/total_hits*100
data[#data+1] = t2
t2[1] = esta_magia.c_amt
@@ -4382,7 +4382,7 @@ function atributo_damage:MontaDetalhesDamageDone (spellid, barra, instancia)
t2[5] = Loc ["STRING_MAXIMUM_SHORT"] .. ": " .. _detalhes:comma_value (esta_magia.c_max)
t2[6] = Loc ["STRING_AVERAGE"] .. ": " .. _detalhes:comma_value (media_critico)
t2[7] = Loc ["STRING_DPS"] .. ": " .. _detalhes:comma_value (crit_dps)
t2[8] = esta_magia.c_amt .. " / " .. _cstr ("%.1f", esta_magia.c_amt/total_hits*100) .. "%"
t2[8] = esta_magia.c_amt .. " [|cFFC0C0C0" .. _cstr ("%.1f", esta_magia.c_amt/total_hits*100) .. "%|r]"
end
+2 -2
View File
@@ -1926,7 +1926,7 @@ function atributo_heal:MontaDetalhesHealingDone (spellid, barra)
t2[5] = Loc ["STRING_MAXIMUM_SHORT"] .. ": " .. _detalhes:comma_value (esta_magia.c_max)
t2[6] = Loc ["STRING_AVERAGE"] .. ": " .. _detalhes:comma_value (media_critico)
t2[7] = Loc ["STRING_HPS"] .. ": " .. _detalhes:comma_value (crit_hps)
t2[8] = esta_magia.c_amt .. " / ".. _cstr ("%.1f", esta_magia.c_amt/total_hits*100) .. "%"
t2[8] = esta_magia.c_amt .. " [|cFFC0C0C0".. _cstr ("%.1f", esta_magia.c_amt/total_hits*100) .. "%|r]"
end
@@ -1951,7 +1951,7 @@ function atributo_heal:MontaDetalhesHealingDone (spellid, barra)
t3[5] = "On Normals: " .. (esta_magia.m_amt - esta_magia.m_crit)
t3[6] = Loc ["STRING_AVERAGE"] .. ": " .. _detalhes:comma_value (multistrike_heal / multistrike_hits)
t3[7] = Loc ["STRING_HPS"] .. ": " .. _detalhes:comma_value (multistrike_heal / T)
t3[8] = multistrike_hits .. " / " .. _cstr ("%.1f", multistrike_hits / total_hits * 100) .. "%"
t3[8] = multistrike_hits .. " [|cFFC0C0C0" .. _cstr ("%.1f", multistrike_hits / total_hits * 100) .. "%|r]"
end
+2
View File
@@ -412,6 +412,8 @@
novo_objeto.flag_original = flag
novo_objeto.serial = serial
--novo_objeto.grupo = true
--> seta a classe default para desconhecido, assim nenhum objeto fica com classe nil
novo_objeto.classe = "UNKNOW"
+73 -13
View File
@@ -88,7 +88,8 @@
--> special items
local soul_capacitor = {} --> trinket from Socrethar the Eternal
local paladin_gbom = {} --greater blessing of might
local shaman_slash = {} --storm lash
local shaman_slash = {} --storm slash
local shaman_slash_timers = {} --storm slash
local source_cache = {} --store the source's guid, name and flag
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
@@ -141,6 +142,9 @@
local SPELLID_PALADIN_GBOM_AURA = 203528
local SPELLID_PALADIN_GBOM_DAMAGE = 205729
local SPELLNAME_SHAMAN_SLASH = GetSpellInfo (195222)
local SPELLNAME_PALADIN_GBOM = GetSpellInfo (203528)
--> recording data options flags
local _recording_self_buffs = false
local _recording_ability_with_buffs = false
@@ -238,9 +242,9 @@
end
if (spellid == SPELLID_PALADIN_GBOM_DAMAGE) then
who_serial, who_name, who_flags = parser:GetRealHitSourceFromBuffOwner (paladin_gbom, who_serial, who_name, who_flags)
who_serial, who_name, who_flags = parser:GetRealHitSourceFromBuffOwner (paladin_gbom, who_serial, who_name, who_flags, SPELLNAME_PALADIN_GBOM)
elseif (spellid == SPELLID_SHAMAN_SLASH_DAMAGE) then
who_serial, who_name, who_flags = parser:GetRealHitSourceFromBuffOwner (shaman_slash, who_serial, who_name, who_flags)
who_serial, who_name, who_flags = parser:GetRealHitSourceFromBuffOwner (shaman_slash, who_serial, who_name, who_flags, SPELLNAME_SHAMAN_SLASH)
end
--> REMOVE AFTER LEGION LAUNCH
@@ -1296,7 +1300,12 @@
soul_capacitor [who_serial] = _tempo
elseif (spellid == SPELLID_SHAMAN_SLASH_AURA) then --shaman slash
--> handle the bugg on parser time
--> handle the buff on parser time
if (shaman_slash_timers [who_serial] and shaman_slash_timers [who_serial] [alvo_serial]) then
_detalhes:CancelTimer (shaman_slash_timers [who_serial] [alvo_serial])
shaman_slash_timers [who_serial] [alvo_serial] = nil
end
parser:Handle3rdPartyBuff (shaman_slash, who_serial, alvo_serial, true, who_name, who_flags)
elseif (spellid == SPELLID_PALADIN_GBOM_AURA) then --paladin gbom
@@ -1677,7 +1686,11 @@
soul_capacitor [who_serial] = nil
elseif (spellid == SPELLID_SHAMAN_SLASH_AURA) then --shaman slash
parser:Handle3rdPartyBuff (shaman_slash, who_serial, alvo_serial)
--as @Kihra from WCL mentioned, slash has a travel time, the hit may land after the buff has gone
local delay_timer = _detalhes:ScheduleTimer ("HandleSlashUnbuff", 2.5, shaman_slash, who_serial, alvo_serial)
shaman_slash_timers [who_serial] = shaman_slash_timers [who_serial] or {}
shaman_slash_timers [who_serial] [alvo_serial] = delay_timer
--parser:Handle3rdPartyBuff (shaman_slash, who_serial, alvo_serial)
elseif (spellid == SPELLID_PALADIN_GBOM_AURA) then --paladin gbom
parser:Handle3rdPartyBuff (paladin_gbom, who_serial, alvo_serial)
@@ -2724,7 +2737,15 @@ SPELL_POWER_OBSOLETE2 = 15;
ignore_death [alvo_name] = nil
return
end
if (alvo_name == _detalhes.playername) then
--print ("DEATH", GetTime())
if (_detalhes.LatestCombatDone and _detalhes.LatestCombatDone+0.2 > GetTime()) then
-- print ("Eh Maior que 0.2")
end
end
_current_misc_container.need_refresh = true
--> combat totals
@@ -2855,7 +2876,6 @@ SPELL_POWER_OBSOLETE2 = 15;
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--> core
local shaman_slash = {} --storm lash
--[[
paladin buffs = {}
player = paladin buffs [ target GUID ]
@@ -2877,20 +2897,43 @@ SPELL_POWER_OBSOLETE2 = 15;
parser:WipeSourceCache()
local get_name = _detalhes.GetCLName
for i = 1, _GetNumGroupMembers() do
local unit_type = IsInRaid() and "raid" or "party"
for i = 1, (_GetNumGroupMembers() + (unit_type == "party" and -1 or 0)) do
for auraIndex = 1, 40 do
--gbom
local name, rank, texture, count, debuffType, duration, expirationTime, caster, canStealOrPurge, nameplateShowPersonal, spellId = UnitAura ("raid" .. i, auraIndex, "HELPFUL")
local name, rank, texture, count, debuffType, duration, expirationTime, caster, canStealOrPurge, nameplateShowPersonal, spellId = UnitAura (unit_type .. i, auraIndex, "HELPFUL")
if (name and caster and (UnitInRaid (caster) or UnitInParty (caster))) then
if (spellId == SPELLID_SHAMAN_SLASH_AURA) then
local source_serial = UnitGUID (caster)
local target_serial = UnitGUID ("raid" .. i)
local target_serial = UnitGUID (unit_type .. i)
local name, flag = get_name (_, caster), 0x514
parser:Handle3rdPartyBuff (shaman_slash, source_serial, target_serial, true, name, flag)
elseif (spellId == SPELLID_PALADIN_GBOM_AURA) then
local source_serial = UnitGUID (caster)
local target_serial = UnitGUID ("raid" .. i)
local target_serial = UnitGUID (unit_type .. i)
local name, flag = get_name (_, caster), 0x514
parser:Handle3rdPartyBuff (paladin_gbom, source_serial, target_serial, true, name, flag)
end
end
end
end
if (unit_type == "party") then
for auraIndex = 1, 40 do
--gbom
local name, rank, texture, count, debuffType, duration, expirationTime, caster, canStealOrPurge, nameplateShowPersonal, spellId = UnitAura ("player", auraIndex, "HELPFUL")
if (name and caster and (UnitInParty (caster))) then
if (spellId == SPELLID_SHAMAN_SLASH_AURA) then
local source_serial = UnitGUID (caster)
local target_serial = UnitGUID ("player")
local name, flag = get_name (_, caster), 0x514
parser:Handle3rdPartyBuff (shaman_slash, source_serial, target_serial, true, name, flag)
elseif (spellId == SPELLID_PALADIN_GBOM_AURA) then
local source_serial = UnitGUID (caster)
local target_serial = UnitGUID ("player")
local name, flag = get_name (_, caster), 0x514
parser:Handle3rdPartyBuff (paladin_gbom, source_serial, target_serial, true, name, flag)
end
@@ -2899,7 +2942,7 @@ SPELL_POWER_OBSOLETE2 = 15;
end
end
function parser:GetRealHitSourceFromBuffOwner (container, actor_serial, actor_name, actor_flags) --actor can be anything, a player, pet, etc
function parser:GetRealHitSourceFromBuffOwner (container, actor_serial, actor_name, actor_flags, spellname) --actor can be anything, a player, pet, etc
local target_buffs = container [actor_serial]
if (target_buffs) then
local real_source = source_cache [target_buffs [target_buffs.offset]]
@@ -2908,7 +2951,14 @@ SPELL_POWER_OBSOLETE2 = 15;
if (real_source) then
return unpack (real_source)
else
--print ("Details! Debug: buff real source not found.")
--query the player buffs if not found on cache
local name, rank, texture, count, debuffType, duration, expirationTime, caster, canStealOrPurge, nameplateShowPersonal, spellId = UnitAura (actor_name, spellname)
if (name) then
local source_serial = UnitGUID (caster)
if (source_serial) then
parser:Handle3rdPartyBuff (container, source_serial, actor_serial, true, _detalhes:GetCLName (caster), 0x514)
end
end
return actor_serial, actor_name, actor_flags
end
end
@@ -2957,6 +3007,13 @@ SPELL_POWER_OBSOLETE2 = 15;
end
end
end
function _detalhes:HandleSlashUnbuff (shaman_slash, who_serial, alvo_serial)
--local container, who_serial, alvo_serial = unpack (data)
-- print ("slash unbuff:", shaman_slash, who_serial, alvo_serial)
parser:Handle3rdPartyBuff (shaman_slash, who_serial, alvo_serial)
shaman_slash_timers [who_serial] [alvo_serial] = nil
end
local token_list = {
-- neutral
@@ -3582,6 +3639,9 @@ SPELL_POWER_OBSOLETE2 = 15;
function _detalhes.parser_functions:PLAYER_REGEN_ENABLED (...)
_detalhes.LatestCombatDone = GetTime()
-- print ("REGEN ENABLED", GetTime())
--> playing alone, just finish the combat right now
if (not _IsInGroup() and not IsInRaid()) then
_detalhes.tabela_vigente.playing_solo = true
+621 -364
View File
File diff suppressed because it is too large Load Diff