# Hector_Tudors.js — cast_domain() (satır 1232) [← Hector_Tudors.js](index.md) · [← Master](../../wiki.md) Parça 2/2 · [önceki](cast_domain.md) ```javascript if (stp % 20 === 0) ww.playSound("minecraft:block.portal.ambient", cx, cy, cz, 1.6, 0.4); var es = enemies(ww, cx, cy, cz, R, caster); for (var i = 0; i < es.length; i++) { var e = es[i], ep = e.getPosition(); e.setMotion(0, -0.04, 0); e.setFallDistance(0); if (slow) e.applyPotion(slow, 30, 250, false); if (blind) e.applyPotion(blind, 30, 1, false); if (naus) e.applyPotion(naus, 30, 1, true); if (weak) e.applyPotion(weak, 30, 250, false); showHead(ww, ep.x, ep.y + e.getHeight() + 0.4, ep.z, 1.2, 2); fx(ww, "enchantmenttable", ep.x, ep.y + 1, ep.z, 12, 0.6, 0.9, 0.6, 1.0); if (stp % 10 === 0) hurt(e, 4, caster); } t++; ctx.scheduleScript(1, loop); } c.scheduleScript(1, loop); } ```