Fix: flag Thanatos même en cas d'échec de sort
This commit is contained in:
parent
dd2ce39545
commit
f807d3cd52
@ -2274,6 +2274,9 @@ export class RdDActor extends Actor {
|
||||
rollData.show = {}
|
||||
rollData.depenseReve = Number(selectedSort.data.ptreve_reel);
|
||||
|
||||
if (rollData.competence.name.includes('Thanatos')) { // Si Thanatos
|
||||
await this.update({ "data.reve.reve.thanatosused": true });
|
||||
}
|
||||
let reveActuel = Misc.templateData(this).reve.reve.value;
|
||||
if (rolled.isSuccess) { // Réussite du sort !
|
||||
if (rolled.isPart) {
|
||||
@ -2282,9 +2285,6 @@ export class RdDActor extends Actor {
|
||||
if (rollData.isSortReserve) {
|
||||
rollData.depenseReve++;
|
||||
}
|
||||
if (rollData.competence.name.includes('Thanatos')) { // Si Thanatos
|
||||
await this.update({ "data.reve.reve.thanatosused": true });
|
||||
}
|
||||
if (reveActuel > rollData.depenseReve) {
|
||||
// Incrémenter/gére le bonus de case
|
||||
RdDItemSort.incrementBonusCase(this, selectedSort, rollData.tmr.coord);
|
||||
|
Loading…
Reference in New Issue
Block a user