How do you defeat clash of clones?

Continuing the discussion from SOLVED: Stranded In The Dunes - it gets stuck at the end:

1 Like

I know that they say that you should get a boss star to defeat stranded in the dunes, but, you need to defeat clash of clones to get to the Cloudrip Mountain so you can get the boss star. The thing is, you need to beat clash of clones. My question is: How do you do it?

Please give us your code.

The enemy hero will have the same equipment at yours so the idea is to equip a low power sword and win by having a better strategy.

A very powerful sword will kill every one in one hit, but with a low power sword the time it takes to kill an enemy is greater than the time it takes to walk to it

In the level there are two types of troops:
Soldiers: 200 Health, 4 DPS
Archers: 30 Health, 26 DPS

Any idea now ?

1 Like

I recommend not using the sword and attack method and rather use the bash method.

Good idea also, the clone does not use abilities so in that case the enemy hero will do 0 damage.

That didn’t really help. Here is the code I used:

loop:
enemy = self.findNearest(self.findEnemies())
if enemy:
if self.isReady(“bash”):
self.bash(enemy)
else:
self.attack(enemy)
else:
self.say(“come at me!!!”)

Did you remember to indent by four spaces in your loops?

yeah of course I did. it just didn’t show up

1 Like

KILL… THE … ARCHERS
Nearest enemy (as in self.findNearest(self.findEnemies()) ) will not work much

Also, if you don’t have a sword, attack will probably mess up your code

1 Like

Hmm, use weapons with bash, power up. Can I see what you are equipped with?
Also, I suggest you remove the
else:
self.say(“come at me!!!”)

1 Like

i just did not equip a sword and stayed in the middle while shielding so i acted as a meat shield

1 Like

Mr.Imperial_Soldier your way did not work.

1 Like

This tactic will not defeat the map, but only assist in defeating the map.

1 Like

Just be a wizard and spam your spells onto the blue team

1 Like

Maybe, but the blue team has the ability to do that as well, therefore making it not that creative

Well when I did it, they did nothing so…

Only shielding will not work, as you yourself will need to fight as well.

here is my code i have bee stuck for ages pls help:
while True:
enemyIndex = 0
enemies = self.findEnemies()
while enemyIndex < len(enemies) and self.health > self.maxHealth / 4:
enemy = enemies[enemyIndex]
enemyIndex += 1
if enemy.type != ‘sand-yak’:
while enemy.health > 0:
if self.isReady(“electrocute”):
hero.electrocute(enemy)
if self.isReady(“bash”):
hero.bash(enemy)
if self.isReady(“cleave”):
hero.cleave(enemy)
else:
self.attack(enemy)
if self.health <= self.maxHealth / 4:
enemy = enemies[enemyIndex]
enemy=hero.findNearestEnemy()
distance=hero.distanceTo(enemy)
enemyIndex += 1
while enemy.health>0 :

        if distance < 4:
            if self.isReady("cleave"):
                self.cleave(enemy)
            else:
                self.attack(enemy)
        else:
            self.attack(enemy)

please do not necrompost, this is a dead topic, don’t revive it.