Fix: consommation potion enchantée
This commit is contained in:
parent
5a66e4e741
commit
3344e20936
@ -3528,7 +3528,7 @@ export class RdDActor extends RdDBaseActor {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
async buildPotionGuerisonList(pointsGuerison) {
|
async buildPotionGuerisonList(pointsGuerison) {
|
||||||
const pointsGuerisonInitial = pointsGuerison;
|
const pointsGuerisonInitial = pointsGuerison;
|
||||||
const blessures = this.filterItems(it => it.isLegere() || it.isGrave() || it.isCritique()).sort(Misc.descending(it => it.system.gravite))
|
const blessures = this.filterItems(it => it.system.gravite > 0, 'blessure').sort(Misc.descending(it => it.system.gravite))
|
||||||
const ids = []
|
const ids = []
|
||||||
const guerisonData = { list: [], pointsConsommes: 0 }
|
const guerisonData = { list: [], pointsConsommes: 0 }
|
||||||
for (let blessure of blessures) {
|
for (let blessure of blessures) {
|
||||||
|
Loading…
Reference in New Issue
Block a user