Skip to content

Commit

Permalink
fix: mechanics and npc flickering soul
Browse files Browse the repository at this point in the history
changes:
- Added taints removal with words "taints" and "penalties" to npc flickering soul
- Fixed soul war mechanics that should not be applied when in safe places (before hunt teleport)
- Removed bag you desire as loot of soul war monsters
  • Loading branch information
phacUFPE authored and s2leandro155 committed Jul 5, 2024
1 parent cdbf439 commit 1aefe43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function callback.playerOnThink(player, interval)

if accumulatedTime[playerId] >= 10000 then
local soulWarQuest = player:soulWarQuestKV()
if player:getSoulWarZoneMonster() ~= nil and player:getTaintNameByNumber(5) ~= nil then
if player:getSoulWarZoneMonster() ~= nil and not player:isInSafeZone() and player:getTaintNameByNumber(5) ~= nil then
local hpLoss = math.ceil(player:getHealth() * 0.1)
local manaLoss = math.ceil(player:getMana() * 0.1)
player:addHealth(-hpLoss)
Expand Down

0 comments on commit 1aefe43

Please sign in to comment.