landsandboat/scripts/items/scroll_of_addle.lua

18 lines
391 B
Lua
Raw Permalink Normal View History

2021-01-18 12:51:02 -05:00
-----------------------------------
-- ID: Unknown
-- Scroll of Addle
-- Teaches the magic Addle
2021-01-18 12:51:02 -05:00
-----------------------------------
---@type TItem
local itemObject = {}
itemObject.onItemCheck = function(target, item, caster)
return target:canLearnSpell(xi.magic.spell.ADDLE)
end
itemObject.onItemUse = function(target)
target:addSpell(xi.magic.spell.ADDLE)
end
2021-01-17 11:55:03 -05:00
return itemObject