Medical Attention help needed

I can’t get past this level. It might be the fact that i have 599 health but it might not be.

# Ask the healer for help when you're under one-third health.
    currentHealth =
    healingThreshold = self.maxHealth / 2
    enemy = self.findNearestEnemy()
    if currentHealth < 100:
        if self.distanceTo(enemy) > 20:
            self.moveXY(65, 45)
            self.say("heal me")
    if enemy:
        if self.isReady("cleave"):
            if self.distanceTo(enemy) < 6:
        self.moveXY(45, 34)

I don’t have enough gems to get the next best armor… :grimacing:

Oh thats a problem you need more armor I had atleast 800 hp when I was at lvl 14

how many gems do you have?

I notice that even though you define healingThreshold, you never use it. Also, the distance check is unneeded; the ogres will be occupied with the other soldiers. the reason you can’t beat the level might be because of this distance check. Remove it and try again.

Medical attention is a randomized level so try resubmitting it to get a different seed