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

6 lines
278 B
JavaScript
Raw Permalink Normal View History

if (args.opposedTest.attackerTest.item?.name.includes("Morsure"))
2024-05-16 17:57:51 +02:00
{
let woundsGained = args.totalWoundLoss;
this.script.scriptMessage(`Récupère ${woundsGained} Blessures`, { whisper: ChatMessage.getWhisperRecipients("GM") })
2024-05-16 17:57:51 +02:00
this.actor.modifyWounds(woundsGained)
}