Can't complete Clash of Clones (python)

I can’t seem to beat Clash of Clones.
Code:

while True:
    enemy = hero.findNearestEnemy()
    if hero.isReady("power-up"):
        hero.powerUp()
    elif enemy:
        if hero.isReady("bash"):
            hero.bash(enemy)
        elif hero.getCooldown("bash") < 1:
            hero.shield()
        else:
            hero.attack(enemy)

Inventory:

If possible, try unequipping the sword and equipping either a hammer or nothing at all because the AI cannot use special abilities like bash. :slight_smile:

hammer does NOT work anymore.

use the simple sword and attack and bash.

1 Like