Skip to content

Commit

Permalink
Merge pull request #972 from Aeristoka/initiative-parse-fix
Browse files Browse the repository at this point in the history
Fix for new DDB Character Sheet Initiative Layout
  • Loading branch information
kakaroto authored Apr 12, 2022
2 parents fb31583 + af13349 commit 1828da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dndbeyond/content-scripts/character.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ function rollSavingThrow() {
}

function rollInitiative() {
let initiative = $(".ct-initiative-box__value").text();
let initiative = $(".ct-initiative-box__value .ddbc-signed-number").text();
let advantage = $(".ct-initiative-box__advantage").length > 0;
if (initiative == "") {
initiative = $(".ct-combat-mobile__extra--initiative .ct-combat-mobile__extra-value").text();
Expand Down

0 comments on commit 1828da1

Please sign in to comment.