diff --git a/modules/vadentis-actor.js b/modules/vadentis-actor.js index 08f7c25..b7d7834 100644 --- a/modules/vadentis-actor.js +++ b/modules/vadentis-actor.js @@ -380,7 +380,7 @@ export class VadentisActor extends Actor { if (game.user.isGM) { VadentisUtility.performAttack( combatData); } else { - game.socket.emit("system.foundryvtt-vadentis", { name: "msg_attack", data: { combatData } } ); + game.socket.emit("system.foundryvtt-vadentis", { name: "msg_attack", data: combatData } ); } } } else { diff --git a/modules/vadentis-utility.js b/modules/vadentis-utility.js index 49c5f70..253acc8 100644 --- a/modules/vadentis-utility.js +++ b/modules/vadentis-utility.js @@ -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(); diff --git a/system.json b/system.json index d3d449e..9496d21 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "name": "foundryvtt-vadentis", "title": "Vadentis", "description": "Système Vadentis pour FoundryVTT", - "version": "0.1.0", + "version": "0.1.1", "manifestPlusVersion": "1.0.0", "minimumCoreVersion": "0.7.5", "compatibleCoreVersion": "0.7.9",