landsandboat/scripts/items/scroll_of_instant_shell.lua

20 lines
497 B
Lua

-----------------------------------
-- ID: 5989
-- Scroll of Instant Shell
-- Grants the effect of Shell
-----------------------------------
---@type TItem
local itemObject = {}
itemObject.onItemCheck = function(target, item, caster)
return 0
end
itemObject.onItemUse = function(target, user)
local power = 1900 -- shell_iii base power
local duration = 1800
target:addStatusEffect(xi.effect.SHELL, { power = power, duration = duration, origin = user })
end
return itemObject