Nouveau roll-dialog: mode attaque / defense
This commit is contained in:
@@ -36,9 +36,13 @@ export class RollPartCarac extends RollPartSelect {
|
||||
}
|
||||
}
|
||||
|
||||
setFilter(rollData, filter) {
|
||||
filterCaracs(rollData, allowed) {
|
||||
allowed = allowed.filter(it => it != undefined)
|
||||
const refs = this.getRefs(rollData)
|
||||
refs.caracs = refs.all.filter(filter)
|
||||
refs.caracs = allowed.length > 0
|
||||
// ? refs.all.filter(it => allowed.includes(Grammar.toLowerCaseNoAccent(it.key)))
|
||||
? refs.all.filter(it => allowed.includes(it.key))
|
||||
: refs.all
|
||||
}
|
||||
|
||||
prepareContext(rollData) {
|
||||
|
Reference in New Issue
Block a user