Hey guys im just gonna post my code here cause I have alot of homeworks. I killed the peasants and it still works. The hero attacks peasants and I win. heres my code.
// This is an array of nearby names!
// Enemies are at the 0, 2, 4, and 6 indexes of the array.
var names = [
"Thabt", "Victor", // 0, 1
"Leerer", "Alianor", // 2, 3
"Gorylo", "Millicent", // 4, 5
"Weeb", "Brom" // 6, 7
];
// Attack the first two ogres at indexes 0 and 4.
hero.attack(names[1]);
hero.attack(names[0]);
hero.attack(names[5]);
hero.attack(names[4]);
// Attack the ogre at index 2:
hero.attack(names[2]);
hero.attack(names[3]);
// Attack the ogre at index 6:
hero.attack(names[7]);
hero.attack(names[6]);
@Monsty – I ran your code listed above several times, but it did not work for me. Maybe someone else can help confirm that this is or isn’t happening for them too?
This is intentional, as the goal is to kill the ogres, but the goals never mentioned that pheasants must survive, therefore it does not affect the level results even if you kill the pheasants. Confirmed not a bug.