landsandboat/scripts/items/scroll_of_quake_ii.lua

17 lines
406 B
Lua

-----------------------------------
-- ID: 4819
-- Scroll of Quake II
-- Teaches the black magic Quake II
-----------------------------------
---@type TItem
local itemObject = {}
itemObject.onItemCheck = function(target, item, caster)
return target:canLearnSpell(xi.magic.spell.QUAKE_II)
end
itemObject.onItemUse = function(target)
target:addSpell(xi.magic.spell.QUAKE_II)
end
return itemObject