Index: data/runes.lua ================================================================== --- data/runes.lua +++ data/runes.lua @@ -565,15 +565,12 @@ } end; }; intervals = { {period = tf; after = {secs=1.2}; fn = function(c) - print('---- aff idx is now', c.spell._aff_idx) - print(dump(c.spell.subjects)) local sub = c.spell.subjects[c.spell._aff_idx] if sub then - print(' -- sub found') c.spell.visual { amount = 100, time = 2, glow = 14; attached = c.spell.subjects[c.spell._aff_idx].player; texture = sorcery.lib.image('sorcery_sputter.png'):glow(sorcery.lib.color(160,255,80)):render(); minpos = { x = -0.3, y = 7.3, z = -0.3 }; @@ -594,12 +591,10 @@ end}; {period = tf; after = {secs=2.1}; fn = function(c) local sub = c.spell.subjects[c.spell._aff_idx] if sub then purge(sub.player) end c.spell._aff_idx = c.spell._aff_idx + 1 - print('---> aff idx is now', c.spell._aff_idx) - print(dump(c.spell.subjects)) -- if c.spell._aff_idx > c.spell._ntgt then return false end end}; }; } end; @@ -1183,10 +1178,11 @@ end end sorcery.spell.cast { name = 'sorcery:sunshine'; caster = ctx.caster; + anchor = 'caster'; timeline = tl; duration = duration; } end; }; Index: gems.lua ================================================================== --- gems.lua +++ gems.lua @@ -56,11 +56,10 @@ local img = sorcery.lib.image local img_stone = img('sorcery_amulet.png'):multiply(sorcery.lib.color(gem.tone)) local img_sparkle = img('sorcery_amulet_sparkle.png') local useamulet = function(stack,user,target) local sp = sorcery.amulet.getspell(stack) - print('got spell',dump(sp)) if not sp or not sp.cast then return nil end local usedamulet if stack:get_count() == 1 then usedamulet = stack else