landsandboat/scripts/items/scroll_of_huton_san.lua

17 lines
409 B
Lua

-----------------------------------
-- ID: 4936
-- Scroll of Huton: San
-- Teaches the ninjutsu Huton: San
-----------------------------------
---@type TItem
local itemObject = {}
itemObject.onItemCheck = function(target, item, caster)
return target:canLearnSpell(xi.magic.spell.HUTON_SAN)
end
itemObject.onItemUse = function(target)
target:addSpell(xi.magic.spell.HUTON_SAN)
end
return itemObject