[Solved] Protect And Serve Help!

Hallo Aya, thnak you for helping.
My hero looks like that:


Maybe it is the pet making the problem. What are the goals that are incomplete?
Like these:
Screenshot 2023-02-09 19.44.35

Hallo Aya, its ok.
Adding such a passages code for hero helps to succeed in this level.
:slight_smile:


    hero.moveXY(29,54)
    enemy = hero.findNearestEnemy()
    if enemy:
        hero.attack(enemy)
    

Ah well, congrats on solving the level :slight_smile:

Thanks! I checked it once more: it seems, as ogers appear randomly, sometimes this code works but sometimes not. In any case, thank you for support! it works better with

 enemy = hero.findNearestEnemy()
    if enemy:
        hero.attack(enemy)
1 Like