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:
commit
645c902e06
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user