This commit is contained in:
@@ -338,6 +338,10 @@ export default class LethalFantasyRoll extends Roll {
|
||||
let modifier = "+0"
|
||||
let targetName
|
||||
|
||||
// True for any ranged attack: PC weapon (ranged type) or monster attack (ranged mode)
|
||||
const isRangedAttack = (options.rollType === "weapon-attack" && options.rollTarget?.weapon?.system?.weaponType === "ranged")
|
||||
|| (options.rollType === "monster-attack" && options.rollTarget?.attackMode === "ranged")
|
||||
|
||||
let dialogContext = {
|
||||
rollType: options.rollType,
|
||||
rollTarget: options.rollTarget,
|
||||
@@ -362,7 +366,8 @@ export default class LethalFantasyRoll extends Roll {
|
||||
modifier,
|
||||
saveSpell: false,
|
||||
favor: "none",
|
||||
targetName
|
||||
targetName,
|
||||
isRangedAttack
|
||||
}
|
||||
let rollContext
|
||||
if (options.rollContext) {
|
||||
|
||||
Reference in New Issue
Block a user