17,101
edits
(_getSpellTemplateData: Fix index issue) |
(Further fixes) |
||
Line 198: | Line 198: | ||
else | else | ||
local itemProduced = Items.getItemByID(spell.produces) | local itemProduced = Items.getItemByID(spell.produces) | ||
if itemProduced ~= nil and itemProduced.prayerPoints ~= nil then | if itemProduced ~= nil and itemProduced.prayerPoints ~= nil and type(spell.fixedItemCosts) == 'table' then | ||
-- Item produced is a bone | -- Item produced is a bone | ||
local costItem = Items.getItemByID(spell.fixedItemCosts[1].id) | local costItem = Items.getItemByID(spell.fixedItemCosts[1].id) |