foundryvtt-wh4-lang-fr-fr/scripts/chUpiI3el8IO8MSs.js

6 lines
278 B
JavaScript

if (args.opposedTest.attackerTest.item?.name.includes("Morsure"))
{
let woundsGained = args.totalWoundLoss;
this.script.scriptMessage(`Récupère ${woundsGained} Blessures`, { whisper: ChatMessage.getWhisperRecipients("GM") })
this.actor.modifyWounds(woundsGained)
}