Skip to content

Commit

Permalink
linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Muttley committed Sep 8, 2024
1 parent 316b518 commit bbd1c0a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions system/src/documents/Combat2d20.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ export default class Combat2d20 extends Combat {
return 0;
});

if ( this.turn !== null) this.turn = Math.clamped(this.turn, 0, turns.length - 1);
if (this.turn !== null) this.turn =
Math.clamped(this.turn, 0, turns.length - 1);

// Update state tracking
let c = turns[this.turn];
Expand All @@ -134,7 +135,7 @@ export default class Combat2d20 extends Combat {
};

// One-time initialization of the previous state
if ( !this.previous ) this.previous = this.current;
if (!this.previous) this.previous = this.current;

// Return the array of prepared turns
return this.turns = turns;
Expand Down

0 comments on commit bbd1c0a

Please sign in to comment.