Fix regression sur tour suivant

This commit is contained in:
Vincent Vandemeulebrouck 2021-06-01 00:08:23 +02:00
parent d2b612c11c
commit 43274ca6b7

View File

@ -393,11 +393,13 @@ export class RdDCombat {
/* -------------------------------------------- */
static combatNouveauTour(combat) {
if (Misc.isElectedUser()) {
let turn = combat.turns.find(t => t.tokenId == combat.current.tokenId);
this.displayActorCombatStatus(combat, turn.actor);
let turn = combat.turns.find(t => t.token?.id == combat.current.tokenId);
if (turn?.actor) {
RdDCombat.displayActorCombatStatus(combat, turn.actor);
// TODO Playaudio for player??
}
}
}
/* -------------------------------------------- */
static isActive() {