#7 Fix starting round
This commit is contained in:
parent
8a543068d2
commit
f914b9838e
@ -54,6 +54,9 @@ export class Hero6Combat extends Combat {
|
|||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
constructor(data, context) {
|
constructor(data, context) {
|
||||||
|
|
||||||
|
data.flags = { world: { turnData: { turnNumber: 0, segmentNumber: 12} } }
|
||||||
|
|
||||||
super(data, context);
|
super(data, context);
|
||||||
|
|
||||||
this.turnNumber = 0;
|
this.turnNumber = 0;
|
||||||
@ -280,12 +283,13 @@ export class Hero6Combat extends Combat {
|
|||||||
|
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async _onCreateEmbeddedDocuments(type, documents, result, options, userId) {
|
async _onCreateDescendantDocuments(type, documents, result, options, userId) {
|
||||||
//console.log("Added...")
|
//console.log("Added...")
|
||||||
|
if (game.user.isGM) {
|
||||||
await super._onCreateEmbeddedDocuments(type, documents, result, options, userId)
|
await super._onCreateEmbeddedDocuments(type, documents, result, options, userId)
|
||||||
await this.rebuildInitiative()
|
await this.rebuildInitiative()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/* --------------------------------------------
|
/* --------------------------------------------
|
||||||
_onUpdate(changed, options, userId) {
|
_onUpdate(changed, options, userId) {
|
||||||
}*/
|
}*/
|
||||||
|
Loading…
Reference in New Issue
Block a user