23 lines
709 B
Lua
23 lines
709 B
Lua
-----------------------------------
|
|
-- ID: 13144
|
|
-- Item: wing gorget
|
|
-- Item Effect: gives regain
|
|
-----------------------------------
|
|
---@type TItem
|
|
local itemObject = {}
|
|
|
|
itemObject.onItemCheck = function(target, item, caster)
|
|
return 0
|
|
end
|
|
|
|
itemObject.onItemUse = function(target, user)
|
|
if target:hasEquipped(xi.item.WING_GORGET) then
|
|
if target:hasStatusEffect(xi.effect.REGAIN) then
|
|
target:messageBasic(xi.msg.basic.NO_EFFECT)
|
|
else
|
|
target:addStatusEffect(xi.effect.REGAIN, { power = 5, duration = 30, origin = user, tick = 3, sourceType = xi.effectSourceType.EQUIPPED_ITEM, sourceTypeParam = xi.item.WING_GORGET })
|
|
end
|
|
end
|
|
end
|
|
|
|
return itemObject
|