2024-05-16 17:57:51 +02:00
|
|
|
let woundsGained = Math.min(args.totalWoundLoss, args.actor.status.wounds.value)
|
|
|
|
|
|
|
|
woundsGained = Math.floor(woundsGained / 2)
|
|
|
|
|
|
|
|
args.attacker.update({ "system.status.wounds.value": args.attacker.status.wounds.value + woundsGained })
|
|
|
|
|
2024-05-17 01:07:37 +02:00
|
|
|
this.script.scriptMessage(`Récupération de ${woundsGained} Blessures`)
|