We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1c278c commit 0271803Copy full SHA for 0271803
1 file changed
arena.js
@@ -395,12 +395,11 @@ function tick(){
395
let occupiedBy = space.getOccupiedBy();
396
if(occupiedBy !== null){
397
switch(occupiedBy.constructor.name){
398
+ case 'TrailingBody':
399
+ occupiedBy = occupiedBy.getHead();
400
case 'SolidWorm':
401
occupiedBy.kill();
402
break;
- case 'TrailingBody':
- occupiedBy.getHead().kill();
403
- break;
404
}
405
406
if(occupiedBy === null || occupiedBy.constructor.name !== 'Wall'){
0 commit comments