# Hector_Tudors.js — eng_aura() (satır 2229) [← Hector_Tudors.js](index.md) · [← Master](../../wiki.md) ```javascript function eng_aura(c, sk) { var p = c.getPlayer(); if (!p) return; if (guard(p, sk.k)) return; var cf = sk.cfg, key = "bk_" + sk.k + "_id", nid = p.getStates().getNumber(key) + 1; p.getStates().setNumber(key, nid); etitle(p, sk); if (cf.snd) c.getWorld().playSound(cf.snd, p.getPosition().x, p.getPosition().y, p.getPosition().z, 1.4, 1.4); var t = 0, DUR = cf.dur || 120, sid = nid, COUNT = cf.count || 4, R = cf.radius || 2.4, axes = cf.axes || 1; function loop(ctx) { var pl = ctx.getPlayer(); if (!pl) return; if (pl.getStates().getNumber(key) !== sid) return; if (t >= DUR) return; var po = pl.getPosition(), ww = ctx.getWorld(), cy = po.y + 1.0; for (var ax = 0; ax < axes; ax++) { for (var k = 0; k < COUNT; k++) { var a = t * 0.18 + (k / COUNT) * Math.PI * 2, x, y, z; if (ax === 0) { x = po.x + Math.cos(a) * R; y = cy; z = po.z + Math.sin(a) * R; } else if (ax === 1) { x = po.x + Math.cos(a) * R; y = cy + Math.sin(a) * R; z = po.z; } else { x = po.x; y = cy + Math.sin(a) * R; z = po.z + Math.cos(a) * R; } if (cf.useAvatar) showAvatar(ww, x, po.y, z, yawTo(po.x - x, po.z - z) + 180, 2); else showHead(ww, x, y, z, 1.1, 2); } } var es = enemies(ww, po.x, cy, po.z, R + 0.8, pl); for (var i = 0; i < es.length; i++) { hurt(es[i], cf.dmg || 4, pl); var ep = es[i].getPosition(); es[i].addMotion((ep.x - po.x) * 0.1, 0.12, (ep.z - po.z) * 0.1); } t++; ctx.scheduleScript(cf.step || 2, loop); } c.scheduleScript(1, loop); } ```