Skip to content

Commit

Permalink
fix: update client on advance (otland#4604)
Browse files Browse the repository at this point in the history
  • Loading branch information
omarcopires authored Dec 28, 2023
1 parent ac03f09 commit 80f2398
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ function updateClientOnAdvanceLevel.onAdvance(player, skill, oldLevel, newLevel)
end

player:updateClientExpDisplay()
player:takeScreenshot(SCREENSHOT_TYPE_LEVELUP)

if newLevel > oldLevel then
player:takeScreenshot(SCREENSHOT_TYPE_LEVELUP)
end
return true
end

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local updateClientOnAdvanceSkill = CreatureEvent("Update Client On Advance Skill")

function updateClientOnAdvanceSkill.onAdvance(player, skill, oldLevel, newLevel)
if skill == SKILL_LEVEL then
if skill == SKILL_LEVEL and newLevel > oldLevel then
return true
end

Expand Down

0 comments on commit 80f2398

Please sign in to comment.