You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current macro ignores the 5e system setting for critical rolls, ie maxing critical hit damage dice.
In the itemMacro replace: const diceMult = args[0].isCritical ? 2: 1;
with:
const baseDice = Math.ceil(rogueLevels/2);
let diceMult = 1;
let maxCritDmg = "";
if (args[0].isCritical) {
if ( game.settings.get("dnd5e","criticalDamageMaxDice")) {
maxCritDmg = ` + ${baseDice * 6}`;
} else {
diceMult = 2;
}
}
and the return statement with : return {damageRoll: '${baseDice * diceMult}d6${maxCritDmg}', flavor: "Sneak Attack"};
The text was updated successfully, but these errors were encountered:
The current macro ignores the 5e system setting for critical rolls, ie maxing critical hit damage dice.
In the itemMacro replace:
const diceMult = args[0].isCritical ? 2: 1;
with:
and the return statement with :
return {damageRoll: '${baseDice * diceMult}d6${maxCritDmg}', flavor: "Sneak Attack"};
The text was updated successfully, but these errors were encountered: