Fix: statusEffect onReady pour avoir le game.user
This commit is contained in:
parent
41029819c6
commit
970ee5fc04
@ -220,7 +220,6 @@ Hooks.once("init", async function () {
|
||||
RdDCombat.init();
|
||||
RdDTokenHud.init();
|
||||
RdDActor.init();
|
||||
StatusEffects.init();
|
||||
});
|
||||
|
||||
/* -------------------------------------------- */
|
||||
@ -240,6 +239,9 @@ function messageDeBienvenue() {
|
||||
/* Foundry VTT Initialization */
|
||||
/* -------------------------------------------- */
|
||||
Hooks.once("ready", function () {
|
||||
|
||||
StatusEffects.onReady();
|
||||
|
||||
/* -------------------------------------------- */
|
||||
/* Affiche/Init le calendrier */
|
||||
let calendrier = new RdDCalendrier();
|
||||
|
@ -8,7 +8,7 @@ const statusDemiSurprise = new Set(['sonne', 'prone', 'restrain']);
|
||||
const statusSurpriseTotale = new Set(['unconscious', 'blind']);
|
||||
|
||||
export class StatusEffects {
|
||||
static init() {
|
||||
static onReady() {
|
||||
StatusEffects.setCoreStatusId([demiReveStatusEffect]);
|
||||
StatusEffects.setCoreStatusId(rddStatusEffects);
|
||||
StatusEffects.setMandatoryRdd();
|
||||
|
Loading…
Reference in New Issue
Block a user