Hello Eric_Conklin and welcome to this forum.
As sotonin already stated please use three backticks to format your code. For ease of answering your request, I did this for you this time. To learn more about this feature, please read the FAQ, which you should do anyway before posting.
You encountered a problem with Python. Due to the way Python works, you can not have empty statements. This is the way the language is designed and not a problem of CodeCombat.
Something is inside a code block if it is indented exactly 4 spaces relative to the container. See how everything behind the
loop: is indented? All of the indented lines are inside the
Now you’re getting an empty if-statement error. Let us look closely:
# Cleave the enemy!
# Else (if cleave isn't ready), do your normal attack
When looking at this, we can see another thing.
self.attack(enemy) is not inside the else-branch. This is because
self.attack(enemy) is not indented relative to
The corrected code for you (without those comments) is:
self.moveXY(23, 23) # Not in anything
enemy = self.findNearestEnemy() # Only inside the loop
if self.isReady("cleave"): # Only inside the loop
self.cleave(enemy) # Inside the loop and the if
else: # Only inside the loop
self.attack(enemy) # Inside the loop and the else