17 lines
406 B
Lua
17 lines
406 B
Lua
-----------------------------------
|
|
-- ID: 5087
|
|
-- Scroll of Gain-STR
|
|
-- Teaches the white magic Gain-STR
|
|
-----------------------------------
|
|
---@type TItem
|
|
local itemObject = {}
|
|
|
|
itemObject.onItemCheck = function(target, item, caster)
|
|
return target:canLearnSpell(xi.magic.spell.GAIN_STR)
|
|
end
|
|
|
|
itemObject.onItemUse = function(target)
|
|
target:addSpell(xi.magic.spell.GAIN_STR)
|
|
end
|
|
|
|
return itemObject
|