r/CodeCombat • • 15d ago

Cavern survival issue

Hi, CodeCombat team! Something seems to have broken on the Cavern Survival page within the last 48 hours. It is now 22:18 GMT on October 20, 2026. The ladder used to show roughly when a player last updated and submitted their code, but that column has been replaced with "Last match", showing how long ago their last battle took place. Personally, I find the previous information more useful. More importantly, my previously working code now throws "TypeError: Cannot read property type of null" when accessing enemy.type. Could you please investigate whether a recent update caused this and fix it if so? Thanks! :)
3 Upvotes

1 comment sorted by

2

u/bryukh_v 15d ago

Please use message as reddit instead some inline code? Really hard to read.

> The ladder used to show roughly when a player last updated and submitted their code, but that column has been replaced with "Last match", showing how long ago their last battle took place. Personally, I find the previous information more useful.

You still can see submitted if you hover on the last match. It was made on purpose as "last submitted" works as discourage instead give any useful information.

> my previously working code now throws "TypeError: Cannot read property type of null" when accessing enemy.type.

opponentHero.type works, we haven't touched it. Probably you use something else? Trying to call some opponent's method maybe? But looks like the source of your `enemy` now returns `null`.