#206 : Message si l'attaquant = defenser
This commit is contained in:
parent
f27a73ef66
commit
e9f6d5f4b9
@ -417,9 +417,13 @@ export class RdDCombat {
|
||||
else {
|
||||
const defender = target?.actor;
|
||||
const defenderTokenId = target?.data._id;
|
||||
if ( defender.data._id == attacker.data._id) {
|
||||
ui.notifications.warn("Vous vous attaquez vous-même !!!!");
|
||||
} else {
|
||||
return this.create(attacker, defender, defenderTokenId, target)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static getTarget() {
|
||||
|
Loading…
Reference in New Issue
Block a user