diff --git a/module/rdd-combat.js b/module/rdd-combat.js index c4183b1b..01edeea0 100644 --- a/module/rdd-combat.js +++ b/module/rdd-combat.js @@ -126,7 +126,7 @@ export class RdDCombat { /* -------------------------------------------- */ static _deleteDefense(passeArme) { - delete game.system.rdd.combatStore.defenses; + delete game.system.rdd.combatStore.defenses[passeArme]; } /* -------------------------------------------- */ @@ -647,7 +647,7 @@ export class RdDCombat { this.removeChatMessageActionsPasseArme(defenderRoll.passeArme); this._sendMessageDefense(defenderRoll.attackerRoll, defenderRoll, { defense: true }); - this._storeDefense(defenderRoll); + RdDCombat._storeDefense(defenderRoll); } /* -------------------------------------------- */ @@ -719,7 +719,7 @@ export class RdDCombat { this.removeChatMessageActionsPasseArme(defenderRoll.passeArme); this._sendMessageDefense(defenderRoll.attackerRoll, defenderRoll, { defense: true }) - this._storeDefense(defenderRoll); + RdDCombat._storeDefense(defenderRoll); } /* -------------------------------------------- */