Fix: ignorer personnages joueurs non liés

Pour les fenêtres de stress/repos/voyage/astrologie, ignorer
les personnages non liés (par exemple, un guerrier sorde)
This commit is contained in:
2024-03-09 23:12:13 +01:00
parent dde3011f1d
commit 6414f76d67
8 changed files with 15 additions and 13 deletions

View File

@ -95,6 +95,10 @@ export class RdDActor extends RdDBaseActorSang {
return ![TYPES.competencecreature, TYPES.tarot, TYPES.service].includes(item.type)
}
isPersonnageJoueur() {
return this.hasPlayerOwner && this.prototypeToken.actorLink
}
isPersonnage() { return true }
isHautRevant() { return this.system.attributs.hautrevant.value != "" }