Sarven Shepherd (JS)


#1

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!


#2

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.


#3

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