Differences From
Artifact [12e0882fa3]:
54 54 end
55 55 if not gem.foreign_amulet then
56 56 local img = sorcery.lib.image
57 57 local img_stone = img('sorcery_amulet.png'):multiply(sorcery.lib.color(gem.tone))
58 58 local img_sparkle = img('sorcery_amulet_sparkle.png')
59 59 local useamulet = function(stack,user,target)
60 60 local sp = sorcery.amulet.getspell(stack)
61 - print('got spell',dump(sp))
62 61 if not sp or not sp.cast then return nil end
63 62
64 63 local usedamulet if stack:get_count() == 1 then
65 64 usedamulet = stack
66 65 else
67 66 usedamulet = ItemStack(stack)
68 67 usedamulet:set_count(1)