forked from public/foundryvtt-reve-de-dragon
Fix potions permanente
This commit is contained in:
@ -388,7 +388,7 @@ export class RdDActor extends Actor {
|
||||
async verifierPotionsEnchantees() {
|
||||
let potionsEnchantees = this.filterItemsData(it => it.type == 'potion' && it.data.categorie.toLowerCase().includes('enchant'));
|
||||
for (let potion of potionsEnchantees) {
|
||||
if (!potion.prpermanent) {
|
||||
if (!potion.data.prpermanent) {
|
||||
console.log(potion);
|
||||
let newPr = (potion.data.pr > 0) ? potion.data.pr - 1 : 0;
|
||||
let update = { _id: potion._id, 'data.pr': newPr };
|
||||
|
Reference in New Issue
Block a user