v11.1.3 - Werther de Zloth l'Onirique #679

Merged
uberwald merged 11 commits from VincentVk/foundryvtt-reve-de-dragon:v11 into v11 2023-11-11 09:06:01 +01:00
Showing only changes of commit 14d4638e56 - Show all commits

View File

@ -17,7 +17,7 @@ export class AutoAdjustDarkness {
static async adjust(darkness) { static async adjust(darkness) {
if (AutoAdjustDarkness.isAuto()) { if (AutoAdjustDarkness.isAuto()) {
const scene = game.scenes.viewed; const scene = game.scenes.viewed;
if (scene.globalLight && scene.tokenVision) { if (scene?.globalLight && scene?.tokenVision) {
await scene.update({ darkness }); await scene.update({ darkness });
} }
} }