12.0.19 - La témérité d'Astrobazzarh #720

Merged
uberwald merged 4 commits from VincentVk/foundryvtt-reve-de-dragon:v11 into v11 2024-11-08 07:10:13 +01:00
Showing only changes of commit a1e4bfb529 - Show all commits

View File

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