Corrections sur focus
Release Creation / build (release) Successful in 1m4s

This commit is contained in:
2026-05-07 00:14:20 +02:00
parent 755c349078
commit 820a7d61cf
6 changed files with 28 additions and 9 deletions
+13
View File
@@ -29,6 +29,19 @@ export class DonjonEtCieActor extends Actor {
}
}
async _preUpdate(changed, options, user) {
if (
foundry.utils.hasProperty(changed, "system.magie.focus.delta")
&& !foundry.utils.hasProperty(changed, "system.magie.focus.resultat")
&& !foundry.utils.hasProperty(changed, "system.magie.focus.sceneId")
) {
foundry.utils.setProperty(changed, "system.magie.focus.resultat", 0);
foundry.utils.setProperty(changed, "system.magie.focus.sceneId", "");
}
return super._preUpdate(changed, options, user);
}
getCharacteristicEntries() {
return DonjonEtCieUtility.getCharacteristicEntries(this.system);
}