landsandboat/scripts/items/scroll_of_wind_threnody.lua

17 lines
419 B
Lua

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