Skip to content

Commit

Permalink
again all grimoires
Browse files Browse the repository at this point in the history
  • Loading branch information
brightrim committed Feb 23, 2025
1 parent 6d1913e commit 8d545c4
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions magic/arcane/createSpell.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
local common = require("base.common")
local runes = require("magic.arcane.runes")
local magic = require("base.magic")
local grimoireCreation = require("magic.arcane.grimoireCreation")

local M = {}

Expand All @@ -28,10 +29,13 @@ local function getMagicBook(user)
local leftItem = user:getItemAt(5)
local rightItem = user:getItemAt(6)

if leftItem.id == 2619 then
return leftItem
elseif rightItem.id == 2619 then
return rightItem
for _, book in pairs(grimoireCreation.books) do

if leftItem.id == book then
return leftItem
elseif rightItem.id == book then
return rightItem
end
end

debug("Error: We are now past the check for the grimoire but there is no grimoire.")
Expand Down

0 comments on commit 8d545c4

Please sign in to comment.