Library tactician bug

ive had a problem with a similar level like this , but this is actually a bug…
the code given by the level says archer.findNearestEnemy() but the game says archer has no method (findNearestEnemy().)

def commandArcher(archer):
    nearest = archer.findNearestEnemy()
    if archerTarget:
        hero.command(archer, "attack", archerTarget)
    elif nearest:
        hero.command(archer, "attack", nearest)

was given completely by the level.