Fix TIC display for NPC owned by players
This commit is contained in:
parent
460fd1f0d6
commit
9de2bc48b8
@ -16,7 +16,7 @@ export class PegasusCombatTracker extends CombatTracker {
|
|||||||
let combatData = await super.getData()
|
let combatData = await super.getData()
|
||||||
for (let t of combatData.turns) {
|
for (let t of combatData.turns) {
|
||||||
let c = game.combat.combatants.get(t.id)
|
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")
|
let TICs = c.getFlag("world", "TICs")
|
||||||
if (TICs) {
|
if (TICs) {
|
||||||
t.TICs = TICs
|
t.TICs = TICs
|
||||||
|
@ -252,7 +252,7 @@
|
|||||||
],
|
],
|
||||||
"title": "Pegasus RPG",
|
"title": "Pegasus RPG",
|
||||||
"url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg",
|
"url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg",
|
||||||
"version": "11.0.14",
|
"version": "11.0.15",
|
||||||
"download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v11.0.14.zip",
|
"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"
|
"background": "systems/fvtt-pegasus-rpg/images/ui/pegasus_welcome_page.webp"
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user