Differences From
Artifact [4936c92bc2]:
653 653 local maxima = vector.new(radius, radius, radius)
654 654 local potential_targets = minetest.find_nodes_in_area(epicenter - maxima, epicenter + maxima, {'group:sorcery_magical', 'group:sorcery_magitech'})
655 655 local wreck = {}
656 656 for _, pos in pairs(potential_targets) do
657 657 if sorcery.lib.math.vdcomp(radius,epicenter,pos) then
658 - print('got wreckable at',pos)
659 658 wreck[#wreck+1] = pos
660 659 end
661 660 end
662 661 sorcery.spell.cast {
663 662 name = 'sorcery:spellshatter';
................................................................................
1506 1505 local p = vector.add(w,ofs)
1507 1506 if not sorcery.lib.node.is_clear(p) then return end
1508 1507 spark(s, p)
1509 1508 minetest.sound_play('sorcery_put', {pos = p, gain = 0.4}, true)
1510 1509 local lamp = mpick 'lamp_ext'
1511 - print('installing lamp',lamp,p,vector.new(ofs))
1512 1510 put_align(p, lamp, vector.multiply(ofs,-1))
1513 1511 end
1514 1512 i=i+1
1515 1513 end
1516 1514 put{x=o.x, y=0, z=0}