foundryvtt-wh4-lang-fr-fr/reference_scripts/hmk8zV1LTElHUI8A.js

8 lines
310 B
JavaScript
Raw Permalink Normal View History

let msg = `<b>${this.actor.prototypeToken.name}</b> loses 1 Wound.<br>`
if (this.actor.status.wounds.value <= 1)
{
msg += `<b>${this.actor.prototypeToken.name}</b> goes unconscious.<br>`
await this.actor.addCondition("unconscious")
}
this.script.scriptMessage(msg)
this.actor.modifyWounds(-1)