Fix TIC display for NPC owned by players

This commit is contained in:
LeRatierBretonnien 2023-09-17 20:27:16 +02:00
parent 460fd1f0d6
commit 9de2bc48b8
2 changed files with 3 additions and 3 deletions

View File

@ -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" && !c.actor.hasPlayerOwner && game.user.isGM)
t.displayTIC = (c.actor.isOwner && c.actor.hasPlayerOwner && !game.user.isGM) || (c.actor.type == "npc" && !c.actor.hasPlayerOwner && game.user.isGM)
let TICs = c.getFlag("world", "TICs")
if (TICs) {
t.TICs = TICs

View File

@ -252,7 +252,7 @@
],
"title": "Pegasus RPG",
"url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg",
"version": "11.0.14",
"download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v11.0.14.zip",
"version": "11.0.15",
"download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v11.0.15.zip",
"background": "systems/fvtt-pegasus-rpg/images/ui/pegasus_welcome_page.webp"
}