Merge branch 'master-fix' into 'master'
Fix: pas de messages de défense See merge request LeRatierBretonnien/foundryvtt-reve-de-dragon!240
This commit is contained in:
commit
d39dac3bf9
@ -503,7 +503,7 @@ export class RdDCombat {
|
||||
ui.notifications.error("Le joueur " + game.user.name + " n'est connecté à aucun personnage. Impossible de continuer.");
|
||||
return;
|
||||
}
|
||||
if ((game.user.isGM && !defenderToken.actor.hasPlayerOwner) || (defenderToken.actor.hasPlayerOwner && (game.user.character._id == defenderToken.actor.data._id))) {
|
||||
if ((game.user.isGM && !defenderToken.actor.hasPlayerOwner) || (defenderToken.actor.hasPlayerOwner && (game.user.character?._id == defenderToken.actor.data._id))) {
|
||||
const rddCombat = RdDCombat.createForAttackerAndDefender(msg.attackerId, msg.defenderTokenId);
|
||||
if (rddCombat) {
|
||||
const defenderRoll = msg.defenderRoll;
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user