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,
|
dice,
|
||||||
hasTarget: options.hasTarget,
|
hasTarget: options.hasTarget,
|
||||||
modifier,
|
modifier,
|
||||||
saveSpell: false,
|
saveSpell: game.lethalFantasy?.spellDefense ?? false,
|
||||||
favor: "none",
|
favor: "none",
|
||||||
targetName,
|
targetName,
|
||||||
isRangedAttack
|
isRangedAttack
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user