Files
vermine2047/module/system
uberwald 02aabbea36 fix(hooks): delay editMode flag setting to avoid phase error on createActor
The createActor hook was calling actor.setFlag() immediately, which triggered
updateActor -> prepareData -> prepareEmbeddedDocuments() -> applyActiveEffects().

Since the actor had already gone through data preparation during creation,
the effects had already been applied, causing the 'phase already completed' error.

Solution: Use setTimeout(..., 0) to defer the flag setting until after the
current preparation cycle is complete.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2026-06-04 23:20:40 +02:00
..
2024-05-13 18:27:54 +02:00
2024-11-26 12:48:27 +01:00
2023-04-20 15:12:05 +02:00
2023-09-05 18:47:36 +02:00
2024-04-21 16:51:13 +02:00
2024-06-24 08:41:59 +02:00