11 lines
330 B
JavaScript
11 lines
330 B
JavaScript
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)
|
|
this.script.message("<strong>Protection</strong> améliorée à " + newWard)
|
|
this.effect.setFlag("wfrp4e", "ward", newWard)
|
|
}
|
|
|
|
} |