Play Home Contribute GitHub Join Us Discourse Staff Members GitHub Contribution Guides Team

Sarven Shepherd (JS)


I get an error for one of the last lines: this.attack(enemy); saying it is not a function.

Any ideas about what is wrong? Anything else in the code that may be tripping my hero up?



Well, it is quite possible that you have equipped a primary tool that does not have an attack function, such as a hammer. Double-check your equipment at the level screen.


I can’t believe I switched the sword out for a hammer. Thanks for the assist @ChronistGilver !