diff --git a/module/rdd-combat.js b/module/rdd-combat.js index 3f67425d..34ca5ec0 100644 --- a/module/rdd-combat.js +++ b/module/rdd-combat.js @@ -417,7 +417,11 @@ export class RdDCombat { else { const defender = target?.actor; const defenderTokenId = target?.data._id; - return this.create(attacker, defender, defenderTokenId, target) + if ( defender.data._id == attacker.data._id) { + ui.notifications.warn("Vous vous attaquez vous-même !!!!"); + } else { + return this.create(attacker, defender, defenderTokenId, target) + } } }