[SOLVED] Magic exam JavaScript

I am not sure what I am doing wrong with the enemy.type. any help would be great.

Rinlore

The brawler type should be in " ". Try this:
if(enemy.type == "brawler"){
(The same for all the other types)

thanks that really helped out a lot and now it is working like it should.

Rinlore

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.