Merge branch 'master-fix' into 'master'

Fix jet récupération

See merge request LeRatierBretonnien/foundryvtt-reve-de-dragon!229
This commit is contained in:
Leratier Bretonnien 2021-05-08 05:41:14 +00:00
commit 9b8ea03067

View File

@ -542,7 +542,8 @@ export class RdDActor extends Actor {
message.content += `Vous avez suffisament rêvé, au delà de votre seuil. `; message.content += `Vous avez suffisament rêvé, au delà de votre seuil. `;
} }
else { else {
let deRecuperation = new Roll("1dr + 7").evaluate().total; const roll = new Roll("1dr").evaluate();
let deRecuperation = roll.total;
console.log("recuperationReve", deRecuperation); console.log("recuperationReve", deRecuperation);
if (deRecuperation >= 7) { if (deRecuperation >= 7) {
// Rêve de Dragon ! // Rêve de Dragon !