Fix: message quand /stress sans valeur #493

Merged
vincent.vandeme merged 1 commits from v1.4-stress into v1.4 2021-06-11 21:15:14 +02:00
Showing only changes of commit 8608d153f6 - Show all commits

View File

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