Nouveau roll-dialog: mode attaque / defense
This commit is contained in:
@@ -91,12 +91,12 @@ export class RollPartJeu extends RollPartSelect {
|
||||
})
|
||||
}
|
||||
|
||||
getExternalPartsFilter(partCode, rollData) {
|
||||
impactOtherPart(part, rollData) {
|
||||
if (this.visible(rollData)) {
|
||||
const current = this.getCurrent(rollData)
|
||||
switch (partCode) {
|
||||
case PART_CARAC: return p => current.caracs?.includes(Grammar.toLowerCaseNoAccent(p.key))
|
||||
case PART_COMP: return p => p.label == current.comp?.name
|
||||
switch (part.code) {
|
||||
case PART_CARAC: return part.filterCaracs(rollData, current.caracs)
|
||||
case PART_COMP: return part.filterComps(rollData,[current.comp?.name])
|
||||
}
|
||||
}
|
||||
return undefined
|
||||
|
Reference in New Issue
Block a user