Add all systems effects scripts + translations
This commit is contained in:
11
reference_scripts/cK1Jysfu5IMUUH0C.js
Normal file
11
reference_scripts/cK1Jysfu5IMUUH0C.js
Normal file
@ -0,0 +1,11 @@
|
||||
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.scriptMessage("<strong>Ward</strong> improved to " + newWard)
|
||||
this.effect.setFlag("wfrp4e", "ward", newWard)
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user