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

4 lines
353 B
JavaScript
Raw Normal View History

2024-05-16 17:57:51 +02:00
if (args.totalWoundLoss > 0 && ["trait", "weapon"].includes(args.opposedTest.attackerTest.item?.type))
{
this.script.scriptMessage(`<b>Infected: ${args.actor.name}</b> must pass an <b>Easy (+40) Endurance</b> Test or gain a @UUID[Compendium.wfrp4e-core.items.kKccDTGzWzSXCBOb]{Festering Wound}`, {whisper: ChatMessage.getWhisperRecipients("GM")})
}