Ajout des blessures sur encaissement

This commit is contained in:
2023-03-14 02:38:21 +01:00
parent d0475e8677
commit 3e189cbe5f
20 changed files with 304 additions and 417 deletions

View File

@ -88,10 +88,7 @@ export class RdDTokenHud {
static async addExtensionHudSoins(html, sourceActor) {
const target = Targets.getTarget({ warn: false });
if (target?.actor) {
const hudSoins = {
targetActor: target.actor,
blessures: target.actor.blessuresASoigner() ?? []
};
const hudSoins = { blessures: target.actor.blessuresASoigner() ?? [] };
if (hudSoins.blessures.length > 0) {
// soins
const controlIconTarget = html.find('.control-icon[data-action=combat]');