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

6 lines
267 B
JavaScript
Raw Normal View History

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