- Advanced Death Logs plugin got updates on Endurance Player Value and few bug fixes.
- Max Window Amount options can new be set to 1, before the minimum was 3. - Fixed a problem with friendly fire tooltip where sometimes it doesn't show up. - Fixed cooldowns tooltip which wasn't showing rounded numbers (49.99 instead of 50). - Fixed Warrior's Shield Block which wasn't being count as a cooldown. - Fixed a problem where sometimes when a hunter pull and reset the boss right after, was causing segments to merge.
This commit is contained in:
+29
-9
@@ -142,7 +142,7 @@
|
||||
end
|
||||
|
||||
function parser:spell_dmg (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, spellid, spellname, spelltype, amount, overkill, school, resisted, blocked, absorbed, critical, glacing, crushing, isoffhand, multistrike)
|
||||
|
||||
|
||||
------------------------------------------------------------------------------------------------
|
||||
--> early checks and fixes
|
||||
|
||||
@@ -563,13 +563,29 @@
|
||||
------------------------------------------------------------------------------------------------
|
||||
--> amount add
|
||||
|
||||
--> actor spells table
|
||||
local spell = este_jogador.spells._ActorTable [spellid]
|
||||
if (not spell) then
|
||||
spell = este_jogador.spells:PegaHabilidade (spellid, true, token)
|
||||
if (missType == "ABSORB") then
|
||||
|
||||
if (token == "SWING_MISSED") then
|
||||
return parser:swing ("SWING_DAMAGE", time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, amountMissed, -1, 1, nil, nil, nil, false, false, false, false, multistrike)
|
||||
|
||||
elseif (token == "RANGE_MISSED") then
|
||||
return parser:range ("RANGE_DAMAGE", time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, spellid, spellname, spelltype, amountMissed, -1, 1, nil, nil, nil, false, false, false, false, multistrike)
|
||||
|
||||
else
|
||||
return parser:spell_dmg (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, spellid, spellname, spelltype, amountMissed, -1, 1, nil, nil, nil, false, false, false, false, multistrike)
|
||||
|
||||
end
|
||||
|
||||
else
|
||||
--> actor spells table
|
||||
local spell = este_jogador.spells._ActorTable [spellid]
|
||||
if (not spell) then
|
||||
spell = este_jogador.spells:PegaHabilidade (spellid, true, token)
|
||||
end
|
||||
return spell_damageMiss_func (spell, alvo_serial, alvo_name, alvo_flags, who_name, missType)
|
||||
end
|
||||
return spell_damageMiss_func (spell, alvo_serial, alvo_name, alvo_flags, who_name, missType)
|
||||
--return spell:AddMiss (alvo_serial, alvo_name, alvo_flags, who_name, missType)
|
||||
|
||||
|
||||
end
|
||||
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------
|
||||
@@ -1776,7 +1792,11 @@
|
||||
|
||||
--> search key: ~spellcast ~castspell ~cast
|
||||
function parser:spellcast (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, spellid, spellname, spelltype)
|
||||
|
||||
|
||||
--if (spellname == "Shield Block") then
|
||||
-- print (who_name, spellid, spellname)
|
||||
--end
|
||||
|
||||
------------------------------------------------------------------------------------------------
|
||||
--> record cooldowns cast which can't track with buff applyed.
|
||||
|
||||
@@ -2594,7 +2614,7 @@
|
||||
_detalhes:SairDoCombate (false, true) --wipe
|
||||
end
|
||||
else
|
||||
if (_detalhes.tabela_vigente.end_time + 2 >= _detalhes.encounter_table ["end"]) then
|
||||
if ((_detalhes.tabela_vigente.end_time or 0) + 2 >= _detalhes.encounter_table ["end"]) then
|
||||
--_detalhes.tabela_vigente.start_time = _detalhes.encounter_table ["start"]
|
||||
_detalhes.tabela_vigente.end_time = _detalhes.encounter_table ["end"]
|
||||
_detalhes:AtualizaGumpPrincipal (-1, true)
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
|
||||
--> create button from template
|
||||
local button = CreateFrame ("button", framename, _detalhes.listener, "DetailsToolbarButton")
|
||||
--button:SetScript ("OnHide", function (self) print (debugstack()) end)
|
||||
|
||||
--> sizes
|
||||
if (w) then
|
||||
|
||||
@@ -232,6 +232,23 @@
|
||||
end
|
||||
return s
|
||||
end
|
||||
|
||||
function _detalhes:percent_color (value)
|
||||
local r, g
|
||||
if (value < 50) then
|
||||
r = 255
|
||||
else
|
||||
r = _math_floor ( 255 - (value * 2 - 100) * 255 / 100)
|
||||
end
|
||||
|
||||
if (value > 50) then
|
||||
g = 255
|
||||
else
|
||||
g = _math_floor ( (value * 2) * 255 / 100)
|
||||
end
|
||||
|
||||
return r/255, g/255, 0
|
||||
end
|
||||
|
||||
--> unpack more than 1 table
|
||||
-- http://www.dzone.com/snippets/lua-unpack-multiple-tables
|
||||
|
||||
Reference in New Issue
Block a user