landsandboat/scripts/items/recall_ring_pashhow.lua

22 lines
561 B
Lua

-----------------------------------
-- ID: 15842
-- Recall ring: Pashhow
-- Enchantment: "Recall-Pashhow"
-----------------------------------
---@type TItem
local itemObject = {}
itemObject.onItemCheck = function(target, item, caster)
local result = 0
if not target:hasKeyItem(xi.ki.PASHHOW_GATE_CRYSTAL) then
result = 445
end
return result
end
itemObject.onItemUse = function(target, user)
target:addStatusEffect(xi.effect.TELEPORT, { power = xi.teleport.id.PASHH, duration = 4, origin = user, icon = 0 })
end
return itemObject