Fixed sync start

This commit is contained in:
WBHarry 2026-03-15 17:17:42 +01:00
parent d3437ffa7b
commit d9e36e3a23
8 changed files with 80 additions and 7 deletions

View file

@ -402,6 +402,17 @@ Hooks.on('chatMessage', (_, message) => {
}
});
Hooks.on(CONFIG.DH.HOOKS.hooksConfig.tagTeamStart, async data => {
if (data.openForAllPlayers && data.partyId) {
const party = game.actors.get(data.partyId);
if (!party) return;
const dialog = new game.system.api.applications.dialogs.TagTeamDialog(party);
dialog.tabGroups.application = 'tagTeamRoll';
await dialog.render({ force: true });
}
});
const updateActorsRangeDependentEffects = async token => {
const rangeMeasurement = game.settings.get(
CONFIG.DH.id,