Some check on actor types

This commit is contained in:
Vlyan
2021-10-06 19:01:17 +02:00
parent 2ca33fa104
commit 967b2c7383
7 changed files with 270 additions and 8 deletions

View File

@@ -195,6 +195,12 @@ export class GmToolbox extends FormApplication {
const type = $(event.currentTarget).data("type");
for await (const actor of game.actors.contents) {
// Only characters types
if (!["character", "npc"].includes(actor.data.type)) {
continue;
}
// Manage left/right button
if (!isAll && (actor.data.type !== "character" || !actor.hasPlayerOwner)) {
continue;
}