@@ -68,9 +68,10 @@ local ctx = { caster = user; target = target; stats = stats; - amulet = stack; + wield = stack; + amulet = stack:get_definition()._sorcery.amulet; meta = stack:get_meta(); -- avoid spell boilerplate color = sorcery.lib.color(sp.tone); today = minetest.get_day_count(); probe = probe; @@ -84,9 +85,8 @@ sound = "xdecor_enchanting"; --FIXME make own sounds sparkle = true; } - print('casting') local res = sp.cast(ctx) if res == nil or res == true then minetest.sound_play(ctx.sound, { @@ -102,9 +102,9 @@ sorcery.amulet.setrune(stack) end end - return ctx.amulet + return ctx.wield end; minetest.register_craftitem(amuletname, { description = sorcery.lib.str.capitalize(name) .. ' amulet'; inventory_image = img_sparkle:blit(img_stone):render();