landsandboat/scripts/items/scroll_of_refresh.lua

17 lines
402 B
Lua

-----------------------------------
-- ID: 4717
-- Scroll of Refresh
-- Teaches the white magic Refresh
-----------------------------------
---@type TItem
local itemObject = {}
itemObject.onItemCheck = function(target, item, caster)
return target:canLearnSpell(xi.magic.spell.REFRESH)
end
itemObject.onItemUse = function(target)
target:addSpell(xi.magic.spell.REFRESH)
end
return itemObject