There is unstable Experience Bar behavior on Veteran Rank.
We got millions of percentages instead max of 100%. This happens due to division by zero after second event on Veteran Rank:
Code:
1. OnExpGain(code="EVENT_STATS_UPDATED", unit="player", current="802310", max="912000")
2. OnExpGain(code="EVENT_VETERAN_RANK_UPDATE", unit="player", current="1818980", max="0")
My solution is (check for "code == EVENT_STATS_UPDATED"):
Code:
function Azurah.OnExpGain(code, unit, current, max)
if (code == EVENT_STATS_UPDATED and unit == 'player') then
Azurah.overlays.exp:SetText(Format_All(current, nil, max))
end
end
|