fix suppression defense sur passe d'armes

This commit is contained in:
Vincent Vandemeulebrouck 2021-01-19 19:58:19 +01:00
parent 515009d194
commit 68152e6bb2

View File

@ -126,7 +126,7 @@ export class RdDCombat {
/* -------------------------------------------- */ /* -------------------------------------------- */
static _deleteDefense(passeArme) { 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.removeChatMessageActionsPasseArme(defenderRoll.passeArme);
this._sendMessageDefense(defenderRoll.attackerRoll, defenderRoll, { defense: true }); 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.removeChatMessageActionsPasseArme(defenderRoll.passeArme);
this._sendMessageDefense(defenderRoll.attackerRoll, defenderRoll, { defense: true }) this._sendMessageDefense(defenderRoll.attackerRoll, defenderRoll, { defense: true })
this._storeDefense(defenderRoll); RdDCombat._storeDefense(defenderRoll);
} }
/* -------------------------------------------- */ /* -------------------------------------------- */