Skip to content

Commit

Permalink
Merge pull request #2488 from JoelFernandes09/fix/ability-upgrade-enable
Browse files Browse the repository at this point in the history
fix(ability): Ability upgrades enable not working correctly, closes #2478
  • Loading branch information
DreadKnight authored Aug 16, 2023
2 parents 76091c5 + f03f851 commit 1785ce4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/creature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,9 @@ export class Creature {

this.abilities.forEach((ability) => {
ability.reset();
if (!ability.upgraded && ability.usesLeftBeforeUpgrade() === 0) {
ability.setUpgraded();
}
});
};
varReset.bind(this);
Expand Down

1 comment on commit 1785ce4

@vercel
Copy link

@vercel vercel bot commented on 1785ce4 Aug 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.