Skip to content

Commit

Permalink
refactor(effect): make find argument clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
phBalance committed Dec 14, 2024
1 parent a719506 commit 0949133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/actor/actor.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ export class HeroSystem6eActor extends Actor {
.reduce((accum, currItem) => accum + parseInt(currItem.system.LEVELS), 0);
const minStr = massMultiplier * 5;

const prevStr0ActiveEffect = this.effects.find((o) => o.flags?.str0);
const prevStr0ActiveEffect = this.effects.find((effect) => effect.flags?.str0);
if (this.system.characteristics.str?.value <= minStr && !prevStr0ActiveEffect) {
const str0ActiveEffect = {
name: "STR0",
Expand Down

0 comments on commit 0949133

Please sign in to comment.