From 35aab263847ffd68b9223c28dc85c294fb030f7e Mon Sep 17 00:00:00 2001 From: sladecraven Date: Wed, 12 Jan 2022 11:58:05 +0100 Subject: [PATCH] Fix v9 --- modules/yggdrasill-actor.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/yggdrasill-actor.js b/modules/yggdrasill-actor.js index 10396c2..e416b6c 100644 --- a/modules/yggdrasill-actor.js +++ b/modules/yggdrasill-actor.js @@ -225,8 +225,13 @@ export class YggdrasillActor extends Actor { } /* -------------------------------------------- */ 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() { let comp = this.data.items.filter( item => item.type == 'competence' && item.data.data.categorie == 'generale');