loop:
enemy = self.findNearestEnemy()
if self.isReady(“cleave”):
self.cleave(enemy)
else :
self.shield()
@cal you can format your code like this
```python
code goes here
An enemy may not always be defined. Before you attack/cleave an enemy, check if it exists with `if enemy:`