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?

Thanks!

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.

1 Like

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

1 Like