fwo-online/fwo-tg

Падение кода при побеге из боя

Closed this issue · 0 comments

catHD commented

Код падает на чистке длительной магии т.к обьект пользователя уже не существует

Round State: ending
RC debug:: end
(node:1) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'alive' of undefined
    at /fwo/arena/GameService.js:457:47
    at arrayFilter (/fwo/node_modules/lodash/lodash.js:582:11)
    at Function.filter (/fwo/node_modules/lodash/lodash.js:9173:14)
    at /fwo/arena/GameService.js:456:32
    at /fwo/node_modules/lodash/lodash.js:4905:15
    at baseForOwn (/fwo/node_modules/lodash/lodash.js:2990:24)
    at /fwo/node_modules/lodash/lodash.js:4874:18
    at Function.forEach (/fwo/node_modules/lodash/lodash.js:9342:14)
    at Game.cleanLongMagics (/fwo/arena/GameService.js:455:7)
    at Game.sortDead (/fwo/arena/GameService.js:427:10)
    at RoundConstructor.<anonymous> (/fwo/arena/GameService.js:335:16)
    at RoundConstructor.emit (events.js:310:20)
    at RoundConstructor.write (/fwo/arena/RoundService.js:50:10)
    at RoundConstructor.end (/fwo/arena/RoundService.js:97:10)
    at RoundConstructor.nextState (/fwo/arena/RoundService.js:147:14)
    at Timeout.<anonymous> (/fwo/arena/RoundService.js:167:12)
(node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 4)