Fix: bonus d'herbe de potion non enchantée

This commit is contained in:
Vincent Vandemeulebrouck 2023-03-23 01:42:48 +01:00
parent 3344e20936
commit 5e6ffc7846

View File

@ -3567,7 +3567,7 @@ export class RdDActor extends RdDBaseActor {
} }
} }
if (!potionData.system.magique || potionData.rolled.isSuccess) { if (!potionData.system.magique || potionData.rolled.isSuccess) {
await this.setBonusPotionSoin(potionData.system.herbeBonus); await this.setBonusPotionSoin(potionData.system.herbebonus);
} }
ChatMessage.create({ ChatMessage.create({
whisper: ChatUtility.getWhisperRecipientsAndGMs(this.name), whisper: ChatUtility.getWhisperRecipientsAndGMs(this.name),
@ -3576,7 +3576,7 @@ export class RdDActor extends RdDBaseActor {
} }
async setBonusPotionSoin(bonus) { async setBonusPotionSoin(bonus) {
await this.update({ 'sante.bonusPotion': bonus }); await this.update({ 'system.sante.bonusPotion': bonus });
} }
/* -------------------------------------------- */ /* -------------------------------------------- */
@ -3604,7 +3604,7 @@ export class RdDActor extends RdDBaseActor {
} }
} }
if (!potionData.system.magique || potionData.rolled.isSuccess) { if (!potionData.system.magique || potionData.rolled.isSuccess) {
this.bonusRepos = potionData.system.herbeBonus; this.bonusRepos = potionData.system.herbebonus;
} }
ChatMessage.create({ ChatMessage.create({
whisper: ChatUtility.getWhisperRecipientsAndGMs(this.name), whisper: ChatUtility.getWhisperRecipientsAndGMs(this.name),