mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
Fixing and cleaning up
This commit is contained in:
parent
2cf68b7f17
commit
ece1c7e6c1
8 changed files with 14 additions and 26 deletions
|
|
@ -1,11 +1,7 @@
|
|||
export default class DhpCombat extends Combat {
|
||||
get combatant() {
|
||||
return this.combatants.contents.find(x => x.system.spotlight.active) ?? null;
|
||||
}
|
||||
|
||||
async startCombat() {
|
||||
this._playCombatSound('startEncounter');
|
||||
const updateData = { 'system.started': true };
|
||||
const updateData = { round: 1, turn: null };
|
||||
Hooks.callAll('combatStart', this, updateData);
|
||||
await this.update(updateData);
|
||||
return this;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue