Skip to content

Commit

Permalink
Allow rolling +hold
Browse files Browse the repository at this point in the history
  • Loading branch information
ben committed Jan 13, 2025
1 parent 9d1402f commit 7fe0675
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Next Release

- Set a default icon for stellar objects, at least when changing their subtype
- Allow rolling +hold from the preroll dialog if a move trigger is written that way

## 1.24.8

Expand Down
5 changes: 3 additions & 2 deletions src/module/rolls/preroll-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@ function rollableOptions(trigger: SFMoveTrigger) {
'wits',
'health',
'spirit',
'supply'
'supply',
'hold'
]
return actionOptions.filter((x) =>
(x.Using as string[]).every((u) => allowedUsings.includes(u.toLowerCase()))
)
}

export function moveTriggerIsRollable(trigger?: SFMoveTrigger) : boolean {
export function moveTriggerIsRollable(trigger?: SFMoveTrigger): boolean {
return !!trigger && rollableOptions(trigger).length > 0
}

Expand Down

0 comments on commit 7fe0675

Please sign in to comment.