diff --git a/module/actor.js b/module/actor.js index c1fc82aa..99b61dd3 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1741,7 +1741,7 @@ export class RdDActor extends RdDBaseActor { async consommerNourritureboisson(itemId, choix = { doses: 1, seForcer: false, supprimerSiZero: false }, userId = undefined) { if (userId != undefined && userId != game.user.id) { RdDBaseActor.remoteActorCall({ - tokenId: actor.token?.id, + tokenId: this.token?.id, actorId: this.id, method: 'consommerNourritureboisson', args: [itemId, choix, userId] @@ -3122,7 +3122,7 @@ export class RdDActor extends RdDBaseActor { async onRollTachePremiersSoins(blessureId, rollData) { if (!this.isOwner) { - return RdDBaseActor.remoteActorCall({ tokenId: actor.token?.id, actorId: this.id, method: 'onRollTachePremiersSoins', args: [blessureId, rollData] }); + return RdDBaseActor.remoteActorCall({ tokenId: this.token?.id, actorId: this.id, method: 'onRollTachePremiersSoins', args: [blessureId, rollData] }); } const blessure = this.getItem(blessureId, 'blessure') console.log('TODO update blessure', this, blessureId, rollData, rollData.tache); @@ -3152,7 +3152,7 @@ export class RdDActor extends RdDBaseActor { async onRollSoinsComplets(blessureId, rollData) { if (!this.isOwner) { - return RdDBaseActor.remoteActorCall({ tokenId: actor.token?.id, actorId: this.id, method: 'onRollSoinsComplets', args: [blessureId, rollData] }); + return RdDBaseActor.remoteActorCall({ tokenId: this.token?.id, actorId: this.id, method: 'onRollSoinsComplets', args: [blessureId, rollData] }); } const blessure = this.getItem(blessureId, 'blessure') if (blessure && blessure.system.premierssoins.done && !blessure.system.soinscomplets.done) { @@ -3246,7 +3246,7 @@ export class RdDActor extends RdDBaseActor { const attackerId = attacker?.id; if (ReglesOptionnelles.isUsing('validation-encaissement-gr') && !game.user.isGM) { RdDBaseActor.remoteActorCall({ - tokenId: actor.token?.id, + tokenId: this.token?.id, actorId: this.id, method: 'appliquerEncaissement', args: [rollData, show, attackerId] diff --git a/module/actor/base-actor.js b/module/actor/base-actor.js index 01881549..26da375e 100644 --- a/module/actor/base-actor.js +++ b/module/actor/base-actor.js @@ -227,7 +227,7 @@ export class RdDBaseActor extends Actor { if (fromActorId && !game.user.isGM) { RdDBaseActor.remoteActorCall({ userId: Misc.connectedGMOrUser(), - tokenId: actor.token?.id, + tokenId: this.token?.id, actorId: this.id, method: 'ajouterSols', args: [sols, fromActorId] }); @@ -258,7 +258,6 @@ export class RdDBaseActor extends Actor { } if (!Misc.isUniqueConnectedGM()) { RdDBaseActor.remoteActorCall({ - tokenId: actor.token?.id, actorId: achat.vendeurId ?? achat.acheteurId, method: 'achatVente', args: [achat] diff --git a/system.json b/system.json index 4ffd3a59..d47a2ce3 100644 --- a/system.json +++ b/system.json @@ -1,8 +1,8 @@ { "id": "foundryvtt-reve-de-dragon", "title": "RĂªve de Dragon", - "version": "11.0.16", - "download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-11.0.16.zip", + "version": "11.0.17", + "download": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/archive/foundryvtt-reve-de-dragon-11.0.17.zip", "manifest": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/raw/v11/system.json", "changelog": "https://www.uberwald.me/gitea/public/foundryvtt-reve-de-dragon/raw/branch/v11/changelog.md", "compatibility": {