Fix calendrier et potions enchantees

This commit is contained in:
2021-06-09 16:38:52 +02:00
parent a9056031a6
commit b6678823d0
4 changed files with 13 additions and 16 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);