mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 11:41:08 +01:00
PR-Fixes
This commit is contained in:
parent
0c50233da3
commit
b696ba2ebc
3 changed files with 2 additions and 34 deletions
|
|
@ -51,18 +51,6 @@ export default class DhpAdversaryRoll extends foundry.abstract.TypeDataModel {
|
|||
}));
|
||||
}
|
||||
|
||||
// const highestIndex = 0;
|
||||
// for (var index in diceKeys) {
|
||||
// const resultIndex = Number.parseInt(index);
|
||||
// if (highestIndex === resultIndex) continue;
|
||||
|
||||
// const current = this.dice.rolls[resultIndex];
|
||||
// const highest = this.dice.rolls[highestIndex];
|
||||
|
||||
// if (current.value > highest.value) this.dice.rolls[highestIndex].discarded = true;
|
||||
// else this.dice.rolls[resultIndex].discarded = true;
|
||||
// }
|
||||
|
||||
this.targets.forEach(target => {
|
||||
target.hit = target.difficulty ? this.total >= target.difficulty : this.total >= target.evasion;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue