v10/v11 compat

This commit is contained in:
2023-05-25 16:22:02 +02:00
parent 29ff86f4bd
commit 6e5bb5da32
6 changed files with 27 additions and 51 deletions

View File

@@ -16,7 +16,7 @@ export class SoSCombat extends Combat {
this.setInitiative(combatant.id, -1); // Reset init
let uniq = randomID(16)
const name = combatant.actor ? combatant.actor.name : combatant.name;
if (combatant.players && combatant.players[0]) {
if (combatant.players && combatant.players[0] ) {
// A player controls this combatant -> message !
ChatMessage.create({
content: `New round ! Click on the button below to declare the actions of ${name} for round ${this.round} !<br>