And also what programming language are you using. looks like python. If so here’s what I can see.
1st, you don’t need enemy1. It’s already in a loop so it will keep attacking the ogres. 2nd, do you have indentations on your actual code? If not:
enemy1 = self.findNearestEnemy()
if enemy1:
self.attack(enemy1)
self.attack(enemy1)
else:
self.attack("Chest")
Would turn into:
enemy = self.findNearestEnemy()
if enemy:
self.attack(enemy)
self.attack(enemy)
else:
self.attack("Chest")
This is not a bug, it’s simply a coding mistake. If this comes to becoming a bug you can post it on our GitHub issues:
Please this post if you find it useful
Cheers!
-@Luke10
I have 120
I die at 31. At 18 an ogre comes and my character doesn’t see it and from 19 to 22, he hides behind the chest, than an other ogre (one with a gun) arrive and I kill the two ogres. When I kill them I lose 63 (70->3) . At 30 I kill an other, I have 5 And then 1 other comes and I die with him and when I die an other ogre (with a gun) arrive…