Fix calendrier et potions enchantees

This commit is contained in:
2021-06-09 16:38:52 +02:00
committed by Vincent Vandemeulebrouck
parent 30b4881151
commit b4778f7488
3 changed files with 12 additions and 10 deletions

View File

@ -382,7 +382,7 @@ export class RdDActor extends Actor {
/* -------------------------------------------- */
async verifierPotionsEnchantees() {
let potionsEnchantees = this.filterItemsData(it => it.type == 'potion' && it.data.magique);
let potionsEnchantees = this.filterItemsData(it => it.type == 'potion' && it.data.categorie.toLowerCase().includes('enchant') );
for (let potion of potionsEnchantees) {
if (!potion.prpermanent) {
console.log(potion);