Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

Zana is very OP in Dueling grounds

Can you give me the console error message?

@Chaboi_3000 console says:
Non-UserCodeError: TypeError: Cannot read property ‘effects’ of null

Maybe when Zana got released it doesn’t have the effect status coded in or something?

Whose code is it? My guess is that they might have a check for hasEffect but their variable assigned to the enemy hero is in the loop and is null. So when the enemy hero goes invisible the enemy can’t be found and the hasEffect method has nothing to check. Your code is not in an infinite loop, but their code locks up which sometimes stops your code which seems like an infinite loop on your end.

Hm okay.

CodeCombat really needs to fix that then, because the enemy player would be able to stop me from using invisibility against them even though it’s their code that has a fault.

I forgot to add a function for hasEffect for one of the moves. Can you try again and see if it works now?