Skip to content

Commit

Permalink
Merge pull request #533 from NekohimeMusou/zero-init-fix
Browse files Browse the repository at this point in the history
Fix: Don't reroll zero init at start of combat
  • Loading branch information
Rughalt authored Sep 9, 2024
2 parents 1bf7f8f + 4ed3d63 commit 882ad44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module/combat.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const OseCombat = {
for (let i = 0; i < combatants.size; i++) {
const c = combatants.contents[i];
// check if actor initiative has already been set for round 1
if (c?.initiative && combat.round === 0) {
if (c?.initiative != null && combat.round === 0) {
continue;
}
// This comes from foundry.js, had to remove the update turns thing
Expand Down

0 comments on commit 882ad44

Please sign in to comment.