landsandboat/scripts/items/scroll_of_wind_carol_ii.lua

17 lines
419 B
Lua

-----------------------------------
-- ID: 5056
-- Scroll of Wind Carol II
-- Teaches the song Wind Carol II
-----------------------------------
---@type TItem
local itemObject = {}
itemObject.onItemCheck = function(target, item, caster)
return target:canLearnSpell(xi.magic.spell.WIND_CAROL_II)
end
itemObject.onItemUse = function(target)
target:addSpell(xi.magic.spell.WIND_CAROL_II)
end
return itemObject