Merge branch 'v1.4-stress' into 'v1.4'

Fix: message quand /stress sans valeur

See merge request LeRatierBretonnien/foundryvtt-reve-de-dragon!276
This commit is contained in:
Leratier Bretonnien 2021-06-11 19:15:14 +00:00
commit 645c902e06
1 changed files with 4 additions and 0 deletions

View File

@ -888,6 +888,10 @@ export class RdDUtility {
/*-------------------------------------------- */
static distribuerStress(stressValue, raison = 'Inconnu', nomJoueur = undefined) {
if (game.user.isGM) {
if (stressValue == undefined){
ui.notifications.warn("Pas de valeuir de stress à distribuer!");
return;
}
if (nomJoueur == undefined) {
for (let actor of game.actors) {
if (actor.hasPlayerOwner) {