Fix regression sur tour suivant
This commit is contained in:
parent
d2b612c11c
commit
43274ca6b7
@ -393,11 +393,13 @@ export class RdDCombat {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static combatNouveauTour(combat) {
|
static combatNouveauTour(combat) {
|
||||||
if (Misc.isElectedUser()) {
|
if (Misc.isElectedUser()) {
|
||||||
let turn = combat.turns.find(t => t.tokenId == combat.current.tokenId);
|
let turn = combat.turns.find(t => t.token?.id == combat.current.tokenId);
|
||||||
this.displayActorCombatStatus(combat, turn.actor);
|
if (turn?.actor) {
|
||||||
|
RdDCombat.displayActorCombatStatus(combat, turn.actor);
|
||||||
// TODO Playaudio for player??
|
// TODO Playaudio for player??
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
static isActive() {
|
static isActive() {
|
||||||
|
Loading…
Reference in New Issue
Block a user