forked from public/foundryvtt-reve-de-dragon
		
	Fix récupération chance
This commit is contained in:
		| @@ -2280,7 +2280,7 @@ export class RdDActor extends Actor { | |||||||
|  |  | ||||||
|   /* -------------------------------------------- */ |   /* -------------------------------------------- */ | ||||||
|   async chanceActuelleIncDec(value, limit = true) { |   async chanceActuelleIncDec(value, limit = true) { | ||||||
|     chance = Math.max(Misc.templateData(this).compteurs.chance.value + value, 0); |     let chance = Math.max(Misc.templateData(this).compteurs.chance.value + value, 0); | ||||||
|     if (limit) { |     if (limit) { | ||||||
|       chance = Math.min(chance.value, this.getChance()) |       chance = Math.min(chance.value, this.getChance()) | ||||||
|     } |     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user