diff --git a/module/documents/roll.mjs b/module/documents/roll.mjs index e2fbcdd..e1056e3 100644 --- a/module/documents/roll.mjs +++ b/module/documents/roll.mjs @@ -358,7 +358,7 @@ export default class LethalFantasyRoll extends Roll { dice, hasTarget: options.hasTarget, modifier, - saveSpell: false, + saveSpell: game.lethalFantasy?.spellDefense ?? false, favor: "none", targetName, isRangedAttack diff --git a/module/utils.mjs b/module/utils.mjs index 79a5ac0..5f8bee3 100644 --- a/module/utils.mjs +++ b/module/utils.mjs @@ -323,6 +323,7 @@ export default class LethalFantasyUtils { if (result) { game.lethalFantasy = game.lethalFantasy || {} + game.lethalFantasy.spellDefense = true // pré-cocher "Save against spell" dans le dialog game.lethalFantasy.nextDefenseData = { attackerId, attackRoll,