Skip to content

Commit

Permalink
empower fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Nov 28, 2022
1 parent eb60b77 commit 06faed2
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions core/parser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,7 @@
if (empower_cache[who_serial]) then
local empowerSpellInfo = empower_cache[who_serial][spellname]
if (empowerSpellInfo) then
if (not empowerSpellInfo.counted) then
if (not empowerSpellInfo.counted_healing) then
--total of empowerment
spell.e_total = (spell.e_total or 0) + empowerSpellInfo.empowerLevel --usado para calcular o average empowerment
--total amount of empowerment
Expand All @@ -1413,7 +1413,7 @@
spell.e_lvl = spell.e_lvl or {}
spell.e_lvl[empowerSpellInfo.empowerLevel] = (spell.e_lvl[empowerSpellInfo.empowerLevel] or 0) + 1

empowerSpellInfo.counted = true
empowerSpellInfo.counted_healing = true
end

--damage bracket
Expand Down Expand Up @@ -2012,7 +2012,8 @@
spellName = spellName,
empowerLevel = empowerLevel,
time = time,
counted = false,
counted_healing = false,
counted_damage = false,
}
empower_cache[sourceGUID][spellName] = empowerTable
end
Expand Down Expand Up @@ -2529,7 +2530,7 @@
if (empower_cache[who_serial]) then
local empowerSpellInfo = empower_cache[who_serial][spellname]
if (empowerSpellInfo) then
if (not empowerSpellInfo.counted) then
if (not empowerSpellInfo.counted_damage) then
--total of empowerment
spell.e_total = (spell.e_total or 0) + empowerSpellInfo.empowerLevel --usado para calcular o average empowerment
--total amount of empowerment
Expand All @@ -2539,7 +2540,7 @@
spell.e_lvl = spell.e_lvl or {}
spell.e_lvl[empowerSpellInfo.empowerLevel] = (spell.e_lvl[empowerSpellInfo.empowerLevel] or 0) + 1

empowerSpellInfo.counted = true
empowerSpellInfo.counted_damage = true
end

--healing bracket
Expand Down

0 comments on commit 06faed2

Please sign in to comment.