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

@ -55,15 +55,18 @@ export class AcksPartySheet extends FormApplication {
_dealXP(ev) {
// Grab experience
const template = `
<form>
<div class="form-group">
<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>
<div class="form-group">
<label>Amount</label>
<input name="total" placeholder="0" type="text"/>
</div>
</form>
`;
let pcs = this.object.documents.filter((actor) => {
return actor.getFlag('acks', 'party') && actor.data.type == "character";
});
new Dialog({
title: "Deal Experience",
content: template,