12.0.19 - La témérité d'Astrobazzarh #720
@ -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 });
|
||||||
|
Loading…
Reference in New Issue
Block a user