Sync to latest WFRP release
This commit is contained in:
14
scripts/vzMxIDjRlQSxXtCW.js
Normal file
14
scripts/vzMxIDjRlQSxXtCW.js
Normal file
@@ -0,0 +1,14 @@
|
||||
// Remove the miscast if doubles rolled and succeeded
|
||||
// Decrement the major miscast to minor miscast
|
||||
if(args.test.succeeded && args.test.result.tables.miscast && args.test.result.roll % 11 == 0)
|
||||
{
|
||||
if (args.test.result.tables.miscast.key == "minormis")
|
||||
{
|
||||
delete args.test.result.tables.miscast;
|
||||
}
|
||||
else if (args.test.result.tables.miscast.key == "majormis")
|
||||
{
|
||||
args.test.result.tables.miscast.key = "minormis"
|
||||
args.test.result.tables.miscast.label = game.i18n.localize("ROLL.MinorMis");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user