fix async sur appelChance
This commit is contained in:
parent
ec82c5baf6
commit
f97914a63e
@ -1479,14 +1479,14 @@ export class RdDActor extends Actor {
|
||||
label: 'Appel à la chance',
|
||||
callbacks: [
|
||||
this._createCallbackExperience(),
|
||||
{ action: this._appelChanceResult }
|
||||
{ action: r => this._appelChanceResult(r) }
|
||||
]
|
||||
}
|
||||
);
|
||||
dialog.render(true);
|
||||
}
|
||||
|
||||
_appelChanceResult(rollData) {
|
||||
async _appelChanceResult(rollData) {
|
||||
const message = {
|
||||
user: game.user._id,
|
||||
alias: this.name,
|
||||
@ -1494,7 +1494,7 @@ export class RdDActor extends Actor {
|
||||
};
|
||||
if (rollData.rolled.isSuccess) {
|
||||
message.content += "<br>Un point de chance est dépensée, l'action peut être retentée"
|
||||
this.chanceActuelleIncDec(-1)
|
||||
await this.chanceActuelleIncDec(-1)
|
||||
}
|
||||
ChatMessage.create(message);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user