munificent/hauberk

Uncaught exception crashes the game from `Monster.onDied`

Opened this issue · 1 comments

maetl commented

Was using the lance action to bash down a corridor of fire worms when the game crashed with an uncaught exception. Not sure if this is enough information, but it might be of interest.

Uncaught Error: RangeError: Value not in range: -1
    at Object.wrapException (main.dart.js:3348)
    at Interceptor.removeAt$1 (main.dart.js:656)
    at Monster.onDied$1 (main.dart.js:19071)
    at Monster.takeDamage$4 (main.dart.js:15702)
    at Hit.perform$4$canMiss (main.dart.js:16993)
    at Hit.perform$3 (main.dart.js:17033)
    at LanceAction.dart.FuryAction.attack$1 (main.dart.js:14801)
    at LanceAction.performAttack$0 (main.dart.js:14847)
    at LanceAction.onPerform$0 (main.dart.js:14780)
    at LanceAction.perform$2 (main.dart.js:14223)

screen shot 2017-04-08 at 7 14 09 pm

Yes, there seems to be a bug using spear attack skill. I've got this in web version after the freeze.

Uncaught Error: CastError: Instance of 'JSArray<Glyph>': type 'JSArray<Glyph>' is not a subtype of type 'Glyph'
    wrapException http://munificent.github.io/hauberk/main.dart.js:955
    propertyTypeCastError http://munificent.github.io/hauberk/main.dart.js:1463
    interceptedTypeCast http://munificent.github.io/hauberk/main.dart.js:1480
    call$3 http://munificent.github.io/hauberk/main.dart.js:27802
    render$1 http://munificent.github.io/hauberk/main.dart.js:27758
    _render$0 http://munificent.github.io/hauberk/main.dart.js:33428
    refresh$0 http://munificent.github.io/hauberk/main.dart.js:33375
    _tick$1 http://munificent.github.io/hauberk/main.dart.js:33409
    anonymous http://munificent.github.io/hauberk/main.dart.js line 1305 > Function:3
    invokeClosure http://munificent.github.io/hauberk/main.dart.js:1139
    $function http://munificent.github.io/hauberk/main.dart.js:1158
main.dart.js:955:17