Fix: fenêtre jets V2 hors combat

la fenêtre ne marchait pas hors d'un combat
This commit is contained in:
2025-10-29 01:56:43 +01:00
parent 020ff4b014
commit f83fdb3b8f
2 changed files with 7 additions and 2 deletions

View File

@@ -58,9 +58,9 @@ export class RdDCombatManager extends Combat {
static getCombatant(actorId, tokenId) {
return game.combat.combatants.find(it => it.actor.id == actorId &&
return game.combat?.combatants.find(it => it.actor.id == actorId &&
it.token.id == tokenId
);
)
}
/* -------------------------------------------- */
async nextRound() {