Passage au gestionaire de combat

This commit is contained in:
2020-12-15 23:54:05 +01:00
parent 537cc005ad
commit b6d3359625
5 changed files with 19 additions and 387 deletions

View File

@ -10,7 +10,7 @@ import { RdDUtility } from "./rdd-utility.js";
export class RdDCombat {
static isActive() {
return game.settings.get("foundryvtt-reve-de-dragon", "moteur-combat") == 'experimental';
return true;
}
/* -------------------------------------------- */
@ -70,9 +70,6 @@ export class RdDCombat {
/* -------------------------------------------- */
async onEvent(button, event) {
if (!RdDCombat.isActive()) {
return;
}
let rollData = game.system.rdd.rollDataHandler[this.attackerId];
if (!rollData) {
ui.notifications.warn("Action automatisée impossible, le jet de l'attaquant a été perdu (suite à un raffraichissement?)")