2021-01-18 12:51:02 -05:00
|
|
|
-----------------------------------
|
2017-06-05 18:27:18 -04:00
|
|
|
-- ID: Unknown
|
|
|
|
|
-- Scroll of Addle
|
|
|
|
|
-- Teaches the magic Addle
|
2021-01-18 12:51:02 -05:00
|
|
|
-----------------------------------
|
2024-08-24 12:32:37 -04:00
|
|
|
---@type TItem
|
2022-10-06 17:25:46 +03:00
|
|
|
local itemObject = {}
|
2014-05-06 11:06:22 -04:00
|
|
|
|
2026-05-25 20:42:11 -06:00
|
|
|
itemObject.onItemCheck = function(target, item, caster)
|
2023-07-19 10:34:33 -04:00
|
|
|
return target:canLearnSpell(xi.magic.spell.ADDLE)
|
2018-08-07 19:36:44 -04:00
|
|
|
end
|
2014-05-06 11:06:22 -04:00
|
|
|
|
2022-10-06 17:25:46 +03:00
|
|
|
itemObject.onItemUse = function(target)
|
2023-07-19 10:34:33 -04:00
|
|
|
target:addSpell(xi.magic.spell.ADDLE)
|
2018-08-07 19:36:44 -04:00
|
|
|
end
|
2021-01-17 11:55:03 -05:00
|
|
|
|
2022-10-06 17:25:46 +03:00
|
|
|
return itemObject
|