Skip to content

Commit

Permalink
downgrading difficulty or ability doesn't remove dice (#619)
Browse files Browse the repository at this point in the history
DOWNGRADING MORE DICE THAN AVAILABLE
There may be situations where a player needs to downgrade Proficiency dice into Ability dice or Challenge dice into Difficulty dice. If all the potential dice are already in their downgraded form, any further downgrades are ignored
  • Loading branch information
cvaliente authored Jan 15, 2021
1 parent ad61917 commit 91955de
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modules/dice/pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ export class DicePoolFFG {
if (this.proficiency > 0) {
this.proficiency--;
this.ability++;
} else if (this.ability > 0) {
this.ability--;
}
} else {
if (this.ability > 0) {
Expand Down Expand Up @@ -126,9 +124,7 @@ export class DicePoolFFG {
if (this.challenge > 0) {
this.challenge--;
this.difficulty++;
} else if (this.difficulty > 0) {
this.difficulty--;
}
}
} else {
if (this.difficulty > 0) {
this.difficulty--;
Expand Down

0 comments on commit 91955de

Please sign in to comment.