From ca8e89cc12987863322bf43f247e951e9aecfc5c Mon Sep 17 00:00:00 2001 From: dmportella Date: Fri, 10 Jan 2025 12:11:56 +0000 Subject: [PATCH] fix: changed description selector to match new styledcomponent css --- src/dndbeyond/content-scripts/character.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dndbeyond/content-scripts/character.js b/src/dndbeyond/content-scripts/character.js index bf82f605..4b03bfa0 100644 --- a/src/dndbeyond/content-scripts/character.js +++ b/src/dndbeyond/content-scripts/character.js @@ -1154,7 +1154,7 @@ async function rollAction(paneClass, force_to_hit_only = false, force_damages_on //console.log("Properties are : " + String(properties)); const action_name = $(".ct-sidebar__heading").text(); const action_parent = $(".ct-sidebar__header-parent").text(); - const description = descriptionToString(".ct-action-detail__description"); + const description = descriptionToString(".ct-action-detail__description, .${paneClass} div[class*='styles_description']"); let to_hit = properties["To Hit"] !== undefined && properties["To Hit"] !== "--" ? properties["To Hit"] : null; if (action_name == "Superiority Dice" || action_parent == "Maneuvers") {