Skip to content

Commit

Permalink
fix: eventcallback and flickering soul
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas authored and s2leandro155 committed Jul 4, 2024
1 parent 96f5492 commit 976f501
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions data-otservbr-global/npc/flickering_soul.lua
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,13 @@ local function playerSayCallback(npc, player, type, message)
end
npcHandler:say(message, npc, player)
elseif MsgContains(message, "taints") or MsgContains(message, "penalties") then
if player:getTaintLevel() == nil then
player:resetTaints()
if player:getTaintLevel() ~= nil then
player:resetTaints(true)
npcHandler:say("I have cleansed you from the taints that you carried with you. You are now free from the burden that you should not have to bear.", npc, player)
return
end

npcHandler:say("You are not tainted by the darkness of the world. You are pure and free from the burdens that others carry.", npc, player)
end
return true
end
Expand Down

0 comments on commit 976f501

Please sign in to comment.