From 460fd1f0d6aced2e2254c65cc30fc384b8f4f4eb Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Sun, 17 Sep 2023 18:55:45 +0200 Subject: [PATCH] Fix TIC display for NPC owned by players --- modules/pegasus-combat.js | 2 +- system.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/pegasus-combat.js b/modules/pegasus-combat.js index e0d47fa..cded96a 100644 --- a/modules/pegasus-combat.js +++ b/modules/pegasus-combat.js @@ -16,7 +16,7 @@ export class PegasusCombatTracker extends CombatTracker { let combatData = await super.getData() for (let t of combatData.turns) { let c = game.combat.combatants.get(t.id) - t.displayTIC = (c.actor.isOwner && c.actor.hasPlayerOwner) || (c.actor.type == "npc" && game.user.isGM) + t.displayTIC = (c.actor.isOwner && c.actor.hasPlayerOwner) || (c.actor.type == "npc" && !c.actor.hasPlayerOwner && game.user.isGM) let TICs = c.getFlag("world", "TICs") if (TICs) { t.TICs = TICs diff --git a/system.json b/system.json index 55b0ea9..41b68e9 100644 --- a/system.json +++ b/system.json @@ -252,7 +252,7 @@ ], "title": "Pegasus RPG", "url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg", - "version": "11.0.13", - "download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v11.0.13.zip", + "version": "11.0.14", + "download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v11.0.14.zip", "background": "systems/fvtt-pegasus-rpg/images/ui/pegasus_welcome_page.webp" } \ No newline at end of file