I get an error that doesn't exist

I don’t execute the first command, instead an error is displayed that says that I am attacking an enemy, and that I should write “if”.
Look:


I don’t know, what is happening. Please help me!

3 Likes

Paying attention to the name of your foe it looks like some cheating(

What’s his sid?
I mean something like opponent=5ca3a5bb811e74002a22b967 in the url.

3 Likes

opponent=5c705c1e834b1b003458f222

2 Likes

Hmm, it’s strange, I beat him with no bugs. Try to check your code maybe.

2 Likes

I checked.
P.s. Your code is very big…

1 Like

Not so much)
About 8 functions only)
Снимок экрана 2020-07-10 в 17.54.24

My code is REALLY BIG in cavern survival.
Снимок экрана 2020-07-10 в 17.54.47
I wish there was no limitation for code symbols quantity (131072 chars) :frowning_face: :roll_eyes:

As for multiplayer levels bugs, I have some stories. F.e. if you want one about dueling grounds try to load CodeCombat - Coding games to learn Python and JavaScript (human team).
Really no enemy hero here.

2 Likes

I know lots of bugs to and maybe in our PM we can talk about it

2 Likes

And my program in cavern survivals is about 120-150 lines :wink:

2 Likes

Or in All about bugs and interesting things like that

3 Likes

Well, I think my personal record for code minimization was about a year ago) There was a time I had only 1 dot in my code and it worked well. But it was cheating in some way.
https://discourse.codecombat.com/t/loop-breaks-multiplayer-code/17353

2 Likes