Clash of Clones Please

Can anyone help I can’t pass this level I tried using low-level equipment but I keep on dying?
Here is my code.

while True:
    enemy = hero.findNearestEnemy()
    if hero.isReady("bash"):

You’ll still want to attack, and in order to pass, you’ll need a stronger code than that, You’ll need to make the code so it has a larger advantage than the opponent, which means that you’ll need to attack, bash and do other stuff to beat this level. Try experimenting with different equipment.

ok thx for the advice

it worked thank you!

next time, try a little harder and read other topics related to this before you post