Fix combat depuis joueur

This commit is contained in:
2021-04-18 18:14:31 +02:00
parent 01465d6fa5
commit 4c1640bb31
3 changed files with 3 additions and 2 deletions

View File

@@ -85,6 +85,7 @@ export class VadentisUtility extends Entity {
static async performAttack( combatData) {
let attacker = game.actors.get(combatData.attackerActorId);
let defender = game.actors.get(combatData.targetActorId);
console.log("ATTACK !!", attacker, defender);
if( attacker && defender) {
let defense = defender.getDefenseScore();
let attaque = attacker.getAttaqueScore();