Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

Clash of Clones code combat Sarven Desert! SOLVED!

I have literally no idea what code or equipment to use for this level!

Use the cleave sword and emperor’s gloves

And armour to give you like 1000 health

use level 66 items and kill the archers first, dont use too gud armor or you cant finish it in time

I already have 1218 health and I have cleave sword but I don’t have enough to buy emperor gloves

// You'll need good strategy to win this one!
// Your clone will have the same equipment you have!
// But, they're not very skilled at using special powers.
// Stay alive longer than the enemy hero!
// You'll need good strategy and good equipment to win this one!
while (true) {
    

    var enemies = hero.findEnemies();
    var enemyArchers = hero.findByType("archer", enemies);
    var friends = hero.findFriends();
    var enemy = hero.findNearestEnemy();
    if (enemyArchers.length > 0) {
        enemy = hero.findNearest(enemyArchers);
        while (enemy.health > 0) {
            hero.attack(enemy);
        }
    } else if (hero.pos.x > 50) {
        hero.moveXY(50, hero.pos.y);
    } else if (hero.health < 1500 && friends.length > 6) {
        hero.shield();
    } else if ((enemy.type != "sand-yak")) {
        while (enemy.health > 0) {
            hero.attack(enemy);
        }
    }
}

That was my code and my died.

Nevermind thank you guys so much because i submitted again and used the equiment u told me to and won

Nice (OMG 20 CHARS SO @%&#&@)

???what do you mean

  • List item

kill the archers first and then retreat