landsandboat/scripts/items/reraiser.lua

21 lines
607 B
Lua
Raw Permalink Normal View History

2021-01-18 12:51:02 -05:00
-----------------------------------
2016-01-16 01:26:33 -05:00
-- ID: 4172
-- Item: Reraiser
-- Item Effect: This potion functions inthe same way as the spell Reraise.
2021-01-18 12:51:02 -05:00
-----------------------------------
---@type TItem
local itemObject = {}
2016-01-16 01:26:33 -05:00
itemObject.onItemCheck = function(target, item, caster)
return 0
end
2016-01-16 01:26:33 -05:00
2026-02-19 22:48:02 -07:00
itemObject.onItemUse = function(target, user)
local duration = 3600
2021-04-01 15:10:15 -04:00
target:delStatusEffect(xi.effect.RERAISE)
2026-02-19 22:48:02 -07:00
target:addStatusEffect(xi.effect.RERAISE, { power = 1, duration = duration, origin = user })
2021-04-01 15:10:15 -04:00
target:messageBasic(xi.msg.basic.GAINS_EFFECT_OF_STATUS, xi.effect.RERAISE)
end
2021-01-17 11:55:03 -05:00
return itemObject