Skip to content

Commit

Permalink
Add a display button for Blood Curse of the Eyeless
Browse files Browse the repository at this point in the history
fixes #1084
  • Loading branch information
kakaroto committed Sep 19, 2023
1 parent 58968ca commit da121a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/dndbeyond/content-scripts/character.js
Original file line number Diff line number Diff line change
Expand Up @@ -1928,8 +1928,9 @@ function injectRollButton(paneClass) {
const action_name = $(".ct-sidebar__heading").text();
const action_parent = $(".ct-sidebar__header-parent").text();
const to_hit = properties["To Hit"] !== undefined && properties["To Hit"] !== "--" ? properties["To Hit"] : null;
if ((action_name == "Superiority Dice" || action_parent == "Maneuvers") ||
(action_name == "Bardic Inspiration" || action_parent == "Blade Flourish") ||
if (action_name == "Superiority Dice" || action_parent == "Maneuvers" ||
action_name == "Bardic Inspiration" || action_parent == "Blade Flourish" ||
action_name.includes("Blood Curse of the Eyeless") ||
(properties["Damage"] !== undefined || to_hit !== null || properties["Attack/Save"] !== undefined)) {
addRollButtonEx(paneClass, ".ct-sidebar__heading", { small: true });
addDisplayButtonEx(paneClass, ".ct-beyond20-roll");
Expand Down

0 comments on commit da121a4

Please sign in to comment.