correct warning when rollhelpers didn't have a target
This commit is contained in:
parent
b69c6c523c
commit
04627e001a
@ -75,6 +75,10 @@ export async function preAttackRollModifiers(
|
|||||||
log('bestNonStackingMods', bestNonStackingMods);
|
log('bestNonStackingMods', bestNonStackingMods);
|
||||||
log('isRangedAttack', isRangedAttack, 'isMeleeAttack', isMeleeAttack);
|
log('isRangedAttack', isRangedAttack, 'isMeleeAttack', isMeleeAttack);
|
||||||
|
|
||||||
|
if (!targetToken) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Deflection
|
// Deflection
|
||||||
if (isMeleeAttack && hasDeflection(targetToken, 'melee')) {
|
if (isMeleeAttack && hasDeflection(targetToken, 'melee')) {
|
||||||
additionalMods.push({ label: 'Target has melee deflection', value: -2 });
|
additionalMods.push({ label: 'Target has melee deflection', value: -2 });
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user