VTTAssets / vtta-party

Provides an instant overview about vital stats of the players active in the current scene
MIT License
4 stars 12 forks source link

Token tooltip breaks after viewing token with LootSheetNpc5e #29

Open Akaito opened 3 years ago

Akaito commented 3 years ago

This feels like an issue with the other module, LootSheetNpc5e. Figured I'd open this here, too, since it's so strange. If at any point in an actor's past, it's been viewed with LootSheetNpc5e, then the error below is logged anytime you hover tokens with that actor (without showing the VTTA tooltip). The super weird part is... why is getTotalGP() being called? Is this their module trying to do something onHover, error'ing, and Foundry bails before it can get to the VTTA onHover? Or does VTTA change its behavior and break on calling that function?

The loot sheet module can be found at https://github.com/jopeek/fvtt-loot-sheet-npc-5e

Foundry VTT | Error thrown in hooked function bound onHoverToken foundry.js:2498:15

TypeError: this.getTotalGP(...).toFixed is not a function
    getActorDetails https://((redacted-url))/modules/vtta-party/src/app/index.js:176
    onHoverToken https://((redacted-url))/modules/vtta-party/src/app/index.js:300
    _call https://((redacted-url))/scripts/foundry.js:2496
    callAll https://((redacted-url))/scripts/foundry.js:2456
    _onHoverIn https://((redacted-url))/scripts/foundry.js:11777
    _onHoverIn https://((redacted-url))/scripts/foundry.js:45161
    _onAlt https://((redacted-url))/scripts/foundry.js:2982
    _handleKeys https://((redacted-url))/scripts/foundry.js:2808
    _onKeyDown https://((redacted-url))/scripts/foundry.js:2760
    KeyboardManager https://((redacted-url))/scripts/foundry.js:2636
    initializeKeyboard https://((redacted-url))/scripts/foundry.js:6706
    setupGame https://((redacted-url))/scripts/foundry.js:6555
    _initializeGameView https://((redacted-url))/scripts/foundry.js:7306
    initialize https://((redacted-url))/scripts/foundry.js:6479
    async* https://((redacted-url))/scripts/foundry.js:7436
    async* https://((redacted-url))/scripts/foundry.js:7434
foundry.js:2499:15