Fix Deal XP logic of party sheet

master
John Downey 2022-04-09 15:26:24 -05:00
parent 22d7c15471
commit 483cd49f9a
1 changed files with 11 additions and 8 deletions

View File

@ -60,10 +60,13 @@ export class AcksPartySheet extends FormApplication {
<label>Amount</label>
<input name="total" placeholder="0" type="text"/>
</div>
</form>`;
let pcs = this.object.entities.filter((e) => {
return e.getFlag('acks', 'party') && e.data.type == "character";
</form>
`;
let pcs = this.object.documents.filter((actor) => {
return actor.getFlag('acks', 'party') && actor.data.type == "character";
});
new Dialog({
title: "Deal Experience",
content: template,