Skip to content

Commit

Permalink
Fixed PTR division by zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Jan 18, 2025
1 parent 0c03fae commit 1aa00c2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Libs/DF/ejournal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ function Ejc.CreateEncounterJournalDump()
---could also be tierAmount - 1
---because the tier is "current season"
---@type number
local currentTierId = tierAmount --EJ_GetCurrentTier(), for some unknown reason, this function is returning 3 on retail
local currentTierId = tierAmount - 1 --EJ_GetCurrentTier(), for some unknown reason, this function is returning 3 on retail

---maximum amount of dungeons in the expansion
---@type number
Expand Down
2 changes: 1 addition & 1 deletion classes/class_utility.lua
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function Details.ShowDeathTooltip(instance, lineFrame, combatObject, deathTable)
for i, event in ipairs(events) do
--local currentHP = event[5] * 100
--local healthPercent = floor(currentHP / maxHP * 100)
local healthPercent = floor(event[5] * 100)
local healthPercent = floor((event[5] or 0) * 100)
if (healthPercent > 100) then
healthPercent = 100
end
Expand Down
2 changes: 1 addition & 1 deletion core/parser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1840,7 +1840,7 @@
this_event [2] = spellId --spellid || false if this is a battle ress line
this_event [3] = amount --amount of damage or healing
this_event [4] = time --parser time
this_event [5] = UnitHealth(sourceName) / UnitHealthMax(sourceName) --current unit heal
this_event [5] = UnitHealth(sourceName) / (max(UnitHealthMax(sourceName), 0.1)) --current unit heal
this_event [6] = sourceName --source name
this_event [7] = absorbed
this_event [8] = school
Expand Down

0 comments on commit 1aa00c2

Please sign in to comment.