diff --git a/module/status-effects.js b/module/status-effects.js index b8e6f572..3e509e47 100644 --- a/module/status-effects.js +++ b/module/status-effects.js @@ -30,9 +30,8 @@ export class StatusEffects { restricted: true }); CONFIG.RDD.allEffects = rddStatusEffects.concat(CONFIG.statusEffects); - + StatusEffects._setUseStatusEffects(StatusEffects._getUseStatusEffects()); - console.log('statusEffects', CONFIG.statusEffects); } @@ -65,7 +64,9 @@ export class StatusEffects { } static _setUseStatusEffects(useStatusEffects) { - game.settings.set("foundryvtt-reve-de-dragon", "use-status-effects", StatusEffects._toSetting(useStatusEffects)); + if (game.user.isGM) { + game.settings.set("foundryvtt-reve-de-dragon", "use-status-effects", StatusEffects._toSetting(useStatusEffects)); + } for (let effect of CONFIG.RDD.allEffects) { effect.active = effect.rdd || useStatusEffects.has(effect.id);