Fix spells

This commit is contained in:
2024-09-12 22:43:09 +02:00
parent 133f7aa428
commit 819548567b
99 changed files with 338 additions and 326 deletions

View File

@ -568,6 +568,7 @@ export class BoLRoll {
icon: '<i class="fas fa-check"></i>',
label: game.i18n.localize("BOL.ui.submit"),
callback: (html) => {
console.log("Submit Roll!!!!");
if (rollData.mode == 'spell' && rollData.ppCurrent < rollData.ppCost) { // Check PP available
ui.notifications.warn("Pas assez de Points de Pouvoir !")
return