Skip to content

Commit

Permalink
Merge pull request FreezingMoon#2488 from JoelFernandes09/fix/ability…
Browse files Browse the repository at this point in the history
…-upgrade-enable

fix(ability): Ability upgrades enable not working correctly, closes FreezingMoon#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

0 comments on commit 1785ce4

Please sign in to comment.