kakaroto / Beyond20

D&D Beyond Character Sheet Integration in Roll20
GNU General Public License v3.0
495 stars 144 forks source link

FireBolt cantrip not pushing to Roll20 (console logs included) #1123

Closed hsnopi closed 4 months ago

hsnopi commented 4 months ago

Describe the bug In my character sheet, sorcerer, https://www.dndbeyond.com/characters/116173738 i click on any attack and they send the rolls to roll 20 EXCEPT firebolt. For firebolt (cantrip) I can only leverage the right click method and it doesn't send to roll20. (ALSO: how do I buy you a beer. I appreciate your work)

Expected behavior when I click the attack boxs for firebolt it should send the result to roll20.

Screenshots To help explain your problem, add screenshots of where you clicked in D&D Beyond, a screenshot of your Beyond20 character settings if applicable and the result you saw in the VTT. image

Browser Info (please complete the following information):

I rerolled with dev toools open. Looks like a type error... The first roll was a different weapon for comparison as it worked. Feel free to email me or PM me here for more. --------snip---------------- Has ICID

[gtm.js:1:73](https://www.googletagmanager.com/gtm.js?id=GTM-N3KHV3K%20line%205%20%3E%20eval) Has ICID
[gtm.js:1:73](https://www.googletagmanager.com/gtm.js?id=GTM-N3KHV3K%20line%205%20%3E%20eval) Has ICID
`, character: "Gotchoo", whisper: 0, play_sound: true, source: null, attributes: {}, description: "Instead of using a weapon to make a melee weapon attack, you can use an unarmed strike: a punch, kick, head-butt, or similar forceful blow (none of which count as weapons). On a hit, an unarmed strike deals bludgeoning damage equal to 1 + your Strength modifier. You are proficient with your unarmed strikes.", … } [dndbeyond_character.js:4012:17](moz-extension://9deda99e-da41-4c77-88a3-5aa32488eff9/dist/dndbeyond_character.js) Received response : Object { success: true, vtt: (1) […], error: null, request: {…} } [dndbeyond_character.js:5003:13](moz-extension://9deda99e-da41-4c77-88a3-5aa32488eff9/dist/dndbeyond_character.js) Has ICID [gtm.js:1:73](https://www.googletagmanager.com/gtm.js?id=GTM-N3KHV3K%20line%205%20%3E%20eval) Has ICID
[gtm.js:1:73](https://www.googletagmanager.com/gtm.js?id=GTM-N3KHV3K%20line%205%20%3E%20eval) Beyond20: Executing panel : ct-spell-pane true false false [dndbeyond_character.js:8260:13](moz-extension://9deda99e-da41-4c77-88a3-5aa32488eff9/dist/dndbeyond_character.js) Beyond20: New side panel is : ct-spell-pane [dndbeyond_character.js:9088:21](moz-extension://9deda99e-da41-4c77-88a3-5aa32488eff9/dist/dndbeyond_character.js) TypeError: $(...)[0] is undefined [dndbeyond_character.js:8489:29](moz-extension://9deda99e-da41-4c77-88a3-5aa32488eff9/dist/dndbeyond_character.js) injectRollButton moz-extension://9deda99e-da41-4c77-88a3-5aa32488eff9/dist/dndbeyond_character.js:8489 documentModified moz-extension://9deda99e-da41-4c77-88a3-5aa32488eff9/dist/dndbeyond_character.js:9089 TypeError: $(...)[0] is undefined [dndbeyond_character.js:7973:25](moz-extension://9deda99e-da41-4c77-88a3-5aa32488eff9/dist/dndbeyond_character.js) Beyond20: New side panel is : ct-spell-pane [dndbeyond_character.js:9088:21](moz-extension://9deda99e-da41-4c77-88a3-5aa32488eff9/dist/dndbeyond_character.js) TypeError: $(...)[0] is undefined[dndbeyond_character.js:8489:29](moz-extension://9deda99e-da41-4c77-88a3-5aa32488eff9/dist/dndbeyond_character.js) injectRollButton moz-extension://9deda99e-da41-4c77-88a3-5aa32488eff9/dist/dndbeyond_character.js:8489 documentModified moz-extension://9deda99e-da41-4c77-88a3-5aa32488eff9/dist/dndbeyond_character.js:9089 ----------end snip--------
hsnopi commented 4 months ago

} else if (paneClass == "ct-spell-pane") { const spell_name = $(".ct-sidebarheading .ct-spell-name,.ct-sidebarheading .ddbc-spell-name")[0].firstChild.textContent;

kakaroto commented 4 months ago

Hi, It sounds like you are still on version 2.9.2 of the extension (Firefox addons just approved 2.9.3 today), and were hitting the issue where spells couldn't be rolled since D&D Beyond changed their website last week. See the release notes of 2.9.3 for more information: https://www.patreon.com/posts/beyond20-v2-9-3-104033738 Thanks!