Skip to content

Commit

Permalink
Do not show default statistic for inline actions (foundryvtt#13165)
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaj-a authored Jan 21, 2024
1 parent 3667552 commit cf918de
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/module/system/text-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,13 +442,7 @@ class TextEditorPF2e extends TextEditor {
(["all", "gm"].includes(visibility) && game.user.isGM);

// statistic
const statistic = (
params["statistic"] ||
params["stat"] ||
params["skill"] ||
(variant && "statistic" in variant && typeof variant.statistic === "string" ? variant.statistic : "") ||
("statistic" in action && typeof action.statistic === "string" ? action.statistic : "")
)?.trim();
const statistic = (params["statistic"] || params["stat"] || params["skill"])?.trim();

if ((dc && showDC) || statistic) {
const STATISTIC_LABELS: Record<string, string> = {
Expand Down

0 comments on commit cf918de

Please sign in to comment.