cherry-pick v12.0.50 vers v13 #761

Merged
uberwald merged 21 commits from VincentVk/foundryvtt-reve-de-dragon:v13 into v13 2025-05-04 19:16:53 +02:00
31 changed files with 3067 additions and 2922 deletions
Showing only changes of commit 0850789ed7 - Show all commits

View File

@ -1,6 +1,7 @@
# 12.0
## 12.0.50 - Le sommeil d'Astrobazzarh
- Le don de double rêve n'interrompt plus le sommeil toutes les heures
- la perte de fatigue à la descente des TMR est visible immédiatement
## 12.0.49 - La deuxième lame d'Astrobazzarh
- Corrections

View File

@ -345,15 +345,16 @@ export class RdDTMRDialog extends Dialog {
}
this.descenteTMR = true;
if (this.actor.tmrApp) {
this.actor.tmrApp = undefined; // Cleanup reference
if (!this.viewOnly) {
await this.actor.setEffect(STATUSES.StatusDemiReve, false);
this.$tellToUserAndGM(message)
}
const appliquerFatigue = ReglesOptionnelles.isUsing("appliquer-fatigue");
this.actor.tmrApp = undefined // Cleanup reference
const appliquerFatigue = ReglesOptionnelles.isUsing("appliquer-fatigue")
await this.actor.santeIncDec(
appliquerFatigue ? "fatigue" : "endurance",
(appliquerFatigue ? 1 : -1) * this.cumulFatigue);
(appliquerFatigue ? 1 : -1) * this.cumulFatigue)
if (!this.viewOnly) {
await this.actor.setEffect(STATUSES.StatusDemiReve, false)
this.$tellToUserAndGM(message)
}
}
this.pixiTMR.close();
this.pixiTMR = undefined