landsandboat/scripts/items/scroll_of_refresh_ii.lua

17 lines
414 B
Lua

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