fix: pre-check 'Save against spell' checkbox when defense originates from spell attack
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user