i’m on Forest Bonemender and i’ve tried everything i know to pass that level but i can’t,
the problem i have is that the AI’s i’m healing go and start attacking a fence instead of guarding the area their suppose to and because of that the orges come in and kill me.
Youtube video of the problem:
in the video i hit the fence so i thought that might have been the cause for triggering them but i tried moving my character away from the fence so she wont attack it but still heal the AI’s and fight orges if they try to come near her, it didn’t matter because the AI’s still go and attack the stupid fence xD
the code i’m using (same code from the Help video)
# Heal allied soldiers to survive the siege. loop: if self.canCast("regen"): bernardDistance = self.distanceTo("Bernard") if bernardDistance < 15: # Bernard needs regeneration! self.cast("regen", "Bernard") chandraDistance = self.distanceTo("Chandra") if chandraDistance < 15: self.cast("regen", "Chandra") else: enemy = self.findNearestEnemy() if enemy: enemyDistance = self.distanceTo(enemy) if enemyDistance < self.attackRange: self.attack(enemy) # Use "if" and "distanceTo" to regenerate "Chandra" # if she is closer than 10 meters away. else: # If you aren't casting "regen", use "if" and "distanceTo" # to attack enemies that are closer than self.attackRange.
Please help me <3