Known Enemy Level code stops running after killing the first enemy. Will not run to second or third enemy. Editor arrow literally stops at second instance of “hero.attack(enemy1)” and will not throw any errors or warnings, just stops (Used both Chrome and Firefox). Here is my code:
What weapon are you using? I want to know this because you could have a weapon that kills on one hit, such as the sharpened sword. If you are using that, then your hero should say something like “But… It’s dead!”. You can fix this by simply reducing the amount of times that you hit an ogre, like instead of hero.attack(enemy1) hero.attack(enemy1), just take away one hero.attack(enemy1) and this is the result: hero.attack(enemy1). If this isn’t the case, I can’t help you.
Test to see if your weapon is a one hit weapon by deleting all the default code and typing just one “hero.attack(enemy1)”. Also, you can’t bash. it just doesn’t work.