Merge branch 'v1.5-fixes' into 'v1.5'

Fix: régression sur ajout d'expérience

See merge request LeRatierBretonnien/foundryvtt-reve-de-dragon!287
This commit is contained in:
Leratier Bretonnien 2021-09-17 16:34:26 +00:00
commit 57bb796051

View File

@ -2082,7 +2082,7 @@ export class RdDActor extends Actor {
createCallbackExperience() { createCallbackExperience() {
return { return {
condition: r => r.rolled.isPart && r.finalLevel < 0 && game.settings.get("core", "rollMode") != 'selfroll', condition: r => r.rolled.isPart && r.finalLevel < 0 && game.settings.get("core", "rollMode") != 'selfroll',
action: r => this.appliquerAjoutExperience(r, (game.settings.get("core", "rollMode") != 'blindroll' && !user.isGM)) action: r => this.appliquerAjoutExperience(r, (game.settings.get("core", "rollMode") != 'blindroll' && !game.user.isGM))
}; };
} }