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

13 lines
511 B
JavaScript
Raw Permalink Normal View History

let actorSize = game.wfrp4e.config.actorSizeNums[args.actor.details.size.value]
let attackerSize = game.wfrp4e.config.actorSizeNums[args.attacker.details.size.value]
if (attackerSize > actorSize)
{
let msg = `<b>Tongue Attack</b>: ${args.actor.prototypeToken.name} is now @Condition[Entangled]`;
await args.actor.addCondition("entangled");
if (actorSize <= 2)
{
msg += `and @Condition[Engaged]`
}
this.script.scriptMessage(msg, {speaker : {alias: args.attacker.prototypeToken.name}})
}