Skip to content

Commit

Permalink
refactor skill advancement event logic (#4615)
Browse files Browse the repository at this point in the history
  • Loading branch information
omarcopires authored Dec 29, 2023
1 parent 80f2398 commit 6579f12
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
local updateClientOnAdvanceSkill = CreatureEvent("Update Client On Advance Skill")

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

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

Expand Down

0 comments on commit 6579f12

Please sign in to comment.