Small fixes #255

Merged
vincent.vandeme merged 1 commits from small-fixes into master 2020-11-26 08:14:39 +01:00

View File

@ -528,16 +528,16 @@ export class RdDActor extends Actor {
let rolled = await RdDResolutionTable.roll(reveActuel, difficulte);
// TODO: xp particulière
console.log("combattreReveDeDragon", rolled );
return this.appliquerReveDeDragon(rolled, force);
return await this.appliquerReveDeDragon(rolled, force);
}
/* -------------------------------------------- */
appliquerReveDeDragon(roll, force) {
async appliquerReveDeDragon(roll, force) {
let message = "";
if (roll.isSuccess) {
message += "<br>Vous gagnez " + force + " points de Rêve";
this.updatePointDeSeuil();
this.reveActuelIncDec(force);
await this.updatePointDeSeuil();
await this.reveActuelIncDec(force);
}
if (roll.isPart) {
// TODO: Dialog pour choix entre HR opu général?