Fix dé draconique 0.8

This commit is contained in:
Vincent Vandemeulebrouck 2021-04-22 20:12:29 +02:00
parent fb490f8ac8
commit 3fe8e834c8

View File

@ -15,8 +15,7 @@ export class DeDraconique extends Roll{
evaluate() { evaluate() {
super.evaluate(); super.evaluate();
const rerolls = Math.ceil(this.total / 8); const rerolls = Math.ceil(this.total / 8);
this.terms[this.terms.length - 1] = rerolls; this.terms[this.terms.length - 1].number = rerolls;
this.results[this.results.length - 1] = rerolls;
this._total -= rerolls; this._total -= rerolls;
return this; return this;
} }