Fix: affichage blessures et pertes
Les pertes et la récupération sont correctement gérées (en ne faisant qu'un seul render pour le personnage)
This commit is contained in:
@@ -86,11 +86,7 @@ export class RdDEntite extends RdDBaseActorReve {
|
||||
return
|
||||
}
|
||||
const perteEndurance = await this.santeIncDec("endurance", -encaissement.endurance);
|
||||
foundry.utils.mergeObject(encaissement, {
|
||||
resteEndurance: perteEndurance.newValue,
|
||||
endurance: perteEndurance.perte,
|
||||
blessure: RdDItemBlessure.prepareBlessure(encaissement.gravite, encaissement.dmg?.loc.label ?? '', attackerToken)
|
||||
})
|
||||
foundry.utils.mergeObject(encaissement, { resteEndurance: perteEndurance.newValue, endurance: perteEndurance.perte })
|
||||
}
|
||||
|
||||
isEntiteAccordee(attacker) {
|
||||
|
||||
Reference in New Issue
Block a user