From 483cd49f9a086bb4a02e79033f857bad367e6d5a Mon Sep 17 00:00:00 2001 From: John Downey Date: Sat, 9 Apr 2022 15:26:24 -0500 Subject: [PATCH] Fix Deal XP logic of party sheet --- src/module/dialog/party-sheet.js | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/module/dialog/party-sheet.js b/src/module/dialog/party-sheet.js index 35dbc0f..341adbc 100644 --- a/src/module/dialog/party-sheet.js +++ b/src/module/dialog/party-sheet.js @@ -55,15 +55,18 @@ export class AcksPartySheet extends FormApplication { _dealXP(ev) { // Grab experience const template = ` -
-
- - -
-
`; - let pcs = this.object.entities.filter((e) => { - return e.getFlag('acks', 'party') && e.data.type == "character"; +
+
+ + +
+
+ `; + + let pcs = this.object.documents.filter((actor) => { + return actor.getFlag('acks', 'party') && actor.data.type == "character"; }); + new Dialog({ title: "Deal Experience", content: template,