This commit is contained in:
sladecraven 2022-01-12 11:58:05 +01:00
parent e4f8505cc7
commit 35aab26384

View File

@ -225,8 +225,13 @@ export class YggdrasillActor extends Actor {
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
getInitiativeScore() { getInitiativeScore() {
return this.data.data.caracsecondaire.reaction.max; if ( this.type == 'character') {
return this.data.data.caracsecondaire.reaction.max;
} else {
return this.data.data.attributs.physique.values.defaut.value;
}
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
getCompetencesGenerales() { getCompetencesGenerales() {
let comp = this.data.items.filter( item => item.type == 'competence' && item.data.data.categorie == 'generale'); let comp = this.data.items.filter( item => item.type == 'competence' && item.data.data.categorie == 'generale');