make sure to read our FAQ , our guidelines, and remember to format your code! As for better code, try something like this:
function Push(lane) {
hero.summon('snail', lane);
hero.summon('elemental', lane);
hero.summon('elemental', lane);
hero.summon('phoenix', lane);
hero.summon('phoenix', lane);
hero.summon('orb', lane);
hero.summon('orb', lane);
}
while(true){
Push(0);
Push(1);
Push(2);
}
or you could just copy someone’s tactic.