@@ -64,13 +64,22 @@ local ctx = { caster = user; target = target; stats = stats; - sound = "xdecor_enchanting"; --FIXME make own sounds - sparkle = true; amulet = stack; meta = stack:get_meta(); -- avoid spell boilerplate color = sorcery.lib.color(sp.tone); + today = minetest.get_day_count(); + heading = { + pos = user:get_pos(); + yaw = user:get_look_dir(); + pitch = user:get_look_vertical(); + angle = user:get_look_horizontal(); + eyeheight = user:get_properties().eye_height; + }; + + sound = "xdecor_enchanting"; --FIXME make own sounds + sparkle = true; } print('casting') local res = sp.cast(ctx)