diff --git a/package-lock.json b/package-lock.json index 9a91fae1..92b9d132 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "izowave", - "version": "1.17.0", + "version": "1.17.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "izowave", - "version": "1.17.0", + "version": "1.17.1", "license": "GNU", "dependencies": { "events": "3.3.0", diff --git a/package.json b/package.json index 2cbdd05f..265b27bd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "izowave", "description": "Isometric game. Build and defense in open world", - "version": "1.17.0", + "version": "1.17.1", "keywords": [ "game", "isometric", diff --git a/src/game/scenes/world/entities/shot/ball/ball.ts b/src/game/scenes/world/entities/shot/ball/ball.ts index 2370b1ca..1047bdd7 100644 --- a/src/game/scenes/world/entities/shot/ball/ball.ts +++ b/src/game/scenes/world/entities/shot/ball/ball.ts @@ -1,5 +1,6 @@ import Phaser from 'phaser'; +import { Analytics } from '~lib/analytics'; import { Assets } from '~lib/assets'; import { getIsometricDistance } from '~lib/dimension'; import { Particles } from '~scene/world/effects'; @@ -60,7 +61,11 @@ export class ShotBall extends Phaser.Physics.Arcade.Image implements IShotBall { this, this.scene.getEntitiesGroup(EntityType.ENEMY), (_, enemy) => { - this.hit(enemy as IEnemy); + try { + this.hit(enemy as IEnemy); + } catch (error) { + Analytics.TrackError(error as TypeError); + } }, ); }