13.0.34
New Features:
- Extended dependent document tracking for cascade deletion, specifying a parent document via the
dnd5e.dependentOnflag - when the parent is deleted, all dependents are automatically deleted. This is an extension of the core dnd5e behaviour.
- Parent types handled by dnd5e: ActiveEffect
- Parent types handled by midi-qol: Actor, Item, Token, MeasuredTemplate, AmbientLight
- Dependent types supported by dnd5e: Actor, Item, ActiveEffect, Activity
- Dependent types added by midi-qol: Token, MeasuredTemplate, AmbientLight
- Can use
MidiQOL.addDependent(parent, dependent)instead offlags.dnd5e.dependentOn.
- Parent types handled by dnd5e: ActiveEffect
Bug Fixes:
- TrapWorkflow
- Fixed TrapWorkflow infinite loop when using activities with attacks. The
WorkflowState_WaitForAttackRollnow properly checkscontext.attackRollto detect when resuming after attack completion.
- Fixed TrapWorkflow not syncing
game.user.targetsfrom targets passed to constructor. Targets are now synced immediately in the constructor for proper workflow execution.
- Fixed D20Roll.buildPost error in TrapWorkflow by not passing
shiftOnlyEvent(which lacks requiredtargetproperty) torollAttack.
- Fixed TrapWorkflow infinite loop when using activities with attacks. The
- !386: Updated pt-BR.json - thanks @Kharmans
Code Improvements:
- Refactored
skipConcentrationCheckfrom actor flags to module-level Set for tracking actors that should skip concentration checks. Avoids database writes so is faster.