Skip to content

Commit

Permalink
Fixed minor issue with bankers
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Oct 13, 2024
1 parent ccb7122 commit 1249967
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/applications/auctioneer/Components/BottomBar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
function getValidActors(){
validActors = game.actors.filter(actor => {
return actor.isOwner
|| ($flagStore.allowBankerVaults && actor.getFlag("item_piles_bankers", "vaultUserId") === game.userId);
|| (
game.modules.get("item_piles_bankers")?.active
&& $flagStore.allowBankerVaults
&& actor.getFlag("item_piles_bankers", "vaultUserId") === game.userId
);
}).map(actor => {
const actorFlagData = game.itempiles.API.getActorFlagData(actor);
const selectable = actor.isOwner || lib.getActiveGMs().length;
Expand Down

0 comments on commit 1249967

Please sign in to comment.