Fix remoteCall

This commit is contained in:
2023-08-15 17:24:01 +02:00
parent b4edaf8584
commit 222a06a978
3 changed files with 7 additions and 8 deletions

View File

@ -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]