81adfb7ffd
- Move wound data initialization to prepareBaseData() (before effects are applied) - Initialize combatStatus in prepareBaseData() to prevent undefined errors - Add protection against recursive effect application in prepareEmbeddedDocuments() - This prevents the 'ActiveEffect application phase has already completed' error The error occurred because modify data in prepareDerivedData() (like combatStatus) could trigger observers that try to re-apply effects during the same cycle. By initializing all required data in prepareBaseData() and protecting prepareEmbeddedDocuments() from recursive calls, we ensure effects are applied exactly once per preparation cycle. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>