Fix dépense chance sur appel à la chance
This commit is contained in:
parent
dae852a1e0
commit
d5277137dd
@ -2282,7 +2282,7 @@ export class RdDActor extends Actor {
|
||||
async chanceActuelleIncDec(value, limit = true) {
|
||||
let chance = Math.max(Misc.templateData(this).compteurs.chance.value + value, 0);
|
||||
if (limit) {
|
||||
chance = Math.min(chance.value, this.getChance())
|
||||
chance = Math.min(chance, this.getChance())
|
||||
}
|
||||
await this.updateCompteurValue("chance", chance);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user