diff --git a/data-otservbr-global/scripts/actions/other/temple_scroll.lua b/data-otservbr-global/scripts/actions/other/temple_scroll.lua index fdfeff177e1..1f170d72be9 100644 --- a/data-otservbr-global/scripts/actions/other/temple_scroll.lua +++ b/data-otservbr-global/scripts/actions/other/temple_scroll.lua @@ -4,12 +4,13 @@ function templeScroll.onUse(player, item, fromPosition, target, toPosition, isHo local inPz = player:getTile():hasFlag(TILESTATE_PROTECTIONZONE) local inFight = player:isPzLocked() or player:getCondition(CONDITION_INFIGHT, CONDITIONID_DEFAULT) if inPz or not inFight then - player:teleportTo(getTownTemplePosition(player:getTown():getId())) + fromPosition:sendMagicEffect(CONST_ME_TELEPORT) + player:teleportTo(player:getTown():getTemplePosition()) + player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) item:remove() - Position(fromPosition):sendMagicEffect(CONST_ME_TELEPORT) else player:sendCancelMessage("You can't use this when you're in a fight.") - Position(fromPosition):sendMagicEffect(CONST_ME_POFF) + fromPosition:sendMagicEffect(CONST_ME_POFF) end return true end