Messages de recuperation

This commit is contained in:
2023-03-18 10:24:30 +01:00
parent 0c502a2188
commit 83d3f17dd0
7 changed files with 193 additions and 115 deletions

View File

@ -40,6 +40,16 @@ export class BoLCombatManager extends Combat {
}
super.nextRound()
}
/************************************************************************************/
startCombat() {
let combatants = this.combatants.contents
for (let c of combatants) {
let actor = game.actors.get( c.actorId )
actor.storeVitaliteCombat()
}
return super.startCombat()
}
/************************************************************************************/
_onDelete() {
@ -47,6 +57,7 @@ export class BoLCombatManager extends Combat {
for (let c of combatants) {
let actor = game.actors.get(c.actorId)
actor.clearInitiative()
actor.displayRecuperation()
}
super._onDelete()
}