2021-01-18 12:51:02 -05:00
|
|
|
-----------------------------------
|
2024-11-13 10:45:49 -05:00
|
|
|
-- ID: 13144
|
2013-02-13 01:59:21 +00:00
|
|
|
-- Item: wing gorget
|
|
|
|
|
-- Item Effect: gives regain
|
2021-01-18 12:51:02 -05:00
|
|
|
-----------------------------------
|
2024-08-24 12:32:37 -04:00
|
|
|
---@type TItem
|
2022-10-06 17:25:46 +03:00
|
|
|
local itemObject = {}
|
2013-02-13 01:59:21 +00:00
|
|
|
|
2026-05-25 20:42:11 -06:00
|
|
|
itemObject.onItemCheck = function(target, item, caster)
|
2018-08-07 19:36:44 -04:00
|
|
|
return 0
|
|
|
|
|
end
|
2013-02-13 01:59:21 +00:00
|
|
|
|
2026-02-19 22:48:02 -07:00
|
|
|
itemObject.onItemUse = function(target, user)
|
2024-11-13 10:45:49 -05:00
|
|
|
if target:hasEquipped(xi.item.WING_GORGET) then
|
|
|
|
|
if target:hasStatusEffect(xi.effect.REGAIN) then
|
|
|
|
|
target:messageBasic(xi.msg.basic.NO_EFFECT)
|
|
|
|
|
else
|
2026-02-19 22:48:02 -07:00
|
|
|
target:addStatusEffect(xi.effect.REGAIN, { power = 5, duration = 30, origin = user, tick = 3, sourceType = xi.effectSourceType.EQUIPPED_ITEM, sourceTypeParam = xi.item.WING_GORGET })
|
2024-11-13 10:45:49 -05:00
|
|
|
end
|
2013-02-13 01:59:21 +00:00
|
|
|
end
|
2018-08-07 19:36:44 -04:00
|
|
|
end
|
2021-01-17 11:55:03 -05:00
|
|
|
|
2022-10-06 17:25:46 +03:00
|
|
|
return itemObject
|