2024-05-16 17:57:51 +02:00
|
|
|
if (!args.ward)
|
|
|
|
{
|
|
|
|
args.ward = (this.effect.getFlag("wfrp4e", "ward") || 0);
|
|
|
|
if (args.wardRoll >= args.ward && args.ward > 3)
|
|
|
|
{
|
|
|
|
let newWard = Math.max(3, args.ward - 1)
|
2024-05-17 01:07:37 +02:00
|
|
|
this.script.scriptMessage("<strong>Protection</strong> améliorée de " + newWard)
|
2024-05-16 17:57:51 +02:00
|
|
|
this.effect.setFlag("wfrp4e", "ward", newWard)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|