Skip to content

Commit

Permalink
remove unnecessary filter
Browse files Browse the repository at this point in the history
  • Loading branch information
kakaroto committed Nov 29, 2024
1 parent 1eb05e8 commit 68a8198
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dndbeyond/base/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ async function buildAttackRoll(character, attack_source, name, description, prop
sneakDieCount -= choice["die"];
validChoices.push(choice);
}
roll_properties["cunning-strike-effects"] = validChoices.filter(f => f.action !== "None").map(m => m.action).join(", ") || undefined;
roll_properties["cunning-strike-effects"] = validChoices.map(m => m.action).join(", ") || undefined;
settings_to_change["rogue-cunning-strike"] = false;
}
const sneak_attack = sneakDieCount > 0 ? `${sneakDieCount}d6` : "0";
Expand Down

0 comments on commit 68a8198

Please sign in to comment.