fix: pre-check 'Save against spell' checkbox when defense originates from spell attack

This commit is contained in:
2026-06-11 22:17:37 +02:00
parent ceb62bca3f
commit 8aae7bada0
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -358,7 +358,7 @@ export default class LethalFantasyRoll extends Roll {
dice, dice,
hasTarget: options.hasTarget, hasTarget: options.hasTarget,
modifier, modifier,
saveSpell: false, saveSpell: game.lethalFantasy?.spellDefense ?? false,
favor: "none", favor: "none",
targetName, targetName,
isRangedAttack isRangedAttack
+1
View File
@@ -323,6 +323,7 @@ export default class LethalFantasyUtils {
if (result) { if (result) {
game.lethalFantasy = game.lethalFantasy || {} game.lethalFantasy = game.lethalFantasy || {}
game.lethalFantasy.spellDefense = true // pré-cocher "Save against spell" dans le dialog
game.lethalFantasy.nextDefenseData = { game.lethalFantasy.nextDefenseData = {
attackerId, attackerId,
attackRoll, attackRoll,