13 lines
473 B
JavaScript
13 lines
473 B
JavaScript
if (args.test.preData.skillName?.includes(game.i18n.localize("NAME.Language")) || args.test instanceof CastTest)
|
|
{
|
|
if (parseInt(args.test.result.SL) > 0 || args.test.succeeded)
|
|
{
|
|
if (parseInt(args.test.result.SL) > 0)
|
|
{
|
|
args.test.result.SL = "-0";
|
|
args.test.result.description = game.i18n.localize("ROLL.MarginalFailure");
|
|
}
|
|
args.test.result.outcome = "failure"
|
|
args.test.result.other.push(`<strong>${this.effect.name}</strong>: Maximum -0 SL`)
|
|
}
|
|
} |