From 976f501b2a52535d51528c18aa4ece2eac0f9d85 Mon Sep 17 00:00:00 2001 From: Eduardo Dantas Date: Fri, 14 Jun 2024 22:36:39 -0300 Subject: [PATCH] fix: eventcallback and flickering soul --- data-otservbr-global/npc/flickering_soul.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/data-otservbr-global/npc/flickering_soul.lua b/data-otservbr-global/npc/flickering_soul.lua index a00df70e338..2010198da6e 100644 --- a/data-otservbr-global/npc/flickering_soul.lua +++ b/data-otservbr-global/npc/flickering_soul.lua @@ -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