Skip to content

Commit

Permalink
Merge branch 'halfling_lucky' into 'master'
Browse files Browse the repository at this point in the history
Fixes #909, Halfling Lucky not applied properly

Closes #909

See merge request foundrynet/dnd5e!190
  • Loading branch information
aaclayton committed Jan 1, 2021
2 parents 45502ba + ccc5c6e commit 5e7445a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion module/combat.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const _getInitiativeFormula = function(combatant) {
let nd = 1;
let mods = "";

if (actor.getFlag("dnd5e", "halflingLucky")) mods += "r=1";
if (actor.getFlag("dnd5e", "halflingLucky")) mods += "r1=1";
if (actor.getFlag("dnd5e", "initiativeAdv")) {
nd = 2;
mods += "kh";
Expand Down
2 changes: 1 addition & 1 deletion module/dice.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export async function d20Roll({parts=[], data={}, event={}, rollMode=null, templ

// Determine the d20 roll and modifiers
let nd = 1;
let mods = halflingLucky ? "r=1" : "";
let mods = halflingLucky ? "r1=1" : "";

// Handle advantage
if (adv === 1) {
Expand Down

0 comments on commit 5e7445a

Please sign in to comment.