Fix défenses particulières

This commit is contained in:
Vincent Vandemeulebrouck 2025-04-23 21:58:51 +02:00
parent 6e456ca92c
commit 9471420d38
2 changed files with 13 additions and 8 deletions

View File

@ -1,4 +1,7 @@
# 12.0 # 12.0
## 12.0.49 - La deuxième lame d'Astrobazzarh
- Correction: les défenses particulières sont correctement affichées
## 12.0.48 - La chèvre d'Astrobazzarh ## 12.0.48 - La chèvre d'Astrobazzarh
- le Bandersnatch a une protection de 10 - le Bandersnatch a une protection de 10
- la consistance chèvre est maintenant possible dans les recettes - la consistance chèvre est maintenant possible dans les recettes

View File

@ -1047,11 +1047,12 @@ export class RdDCombat {
async _onParade(defenderRoll) { async _onParade(defenderRoll) {
if (RdDCombat.isParticuliere(defenderRoll)) {
return await this._onParadeParticuliere(defenderRoll)
}
if (RdDCombat.isReussite(defenderRoll)) { if (RdDCombat.isReussite(defenderRoll)) {
return await this._onParadeNormale(defenderRoll) await this._onParadeNormale(defenderRoll)
if (RdDCombat.isParticuliere(defenderRoll)) {
await this._onParadeParticuliere(defenderRoll)
}
return
} }
await this._onParadeEchec(defenderRoll) await this._onParadeEchec(defenderRoll)
} }
@ -1135,11 +1136,12 @@ export class RdDCombat {
} }
async _onEsquive(defenderRoll) { async _onEsquive(defenderRoll) {
if (RdDCombat.isParticuliere(defenderRoll)) {
return await this._onEsquiveParticuliere(defenderRoll)
}
if (RdDCombat.isReussite(defenderRoll)) { if (RdDCombat.isReussite(defenderRoll)) {
return await this._onEsquiveNormale(defenderRoll) await this._onEsquiveNormale(defenderRoll)
if (RdDCombat.isParticuliere(defenderRoll)) {
await this._onEsquiveParticuliere(defenderRoll)
}
return
} }
return await this._onEsquiveEchec(defenderRoll) return await this._onEsquiveEchec(defenderRoll)
} }