Skip to content

Commit

Permalink
close #2071
Browse files Browse the repository at this point in the history
  • Loading branch information
moo-man committed Jun 9, 2024
1 parent 89de4d4 commit 43028eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/actor/sheet/actor-sheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -1723,7 +1723,7 @@ export default class ActorSheetWfrp4e extends WFRP4eSheetMixin(ActorSheet) {

// let effect = actor.populateEffect(effectId, item, test)

let targets = (game.user.targets.size ? game.user.targets.map(i => i.actor) : test.context.targets.map(t => WFRP_Utility.getToken(t))).map(t => t.actor)
let targets = Array.from(game.user.targets).map(t => t.actor)
if (!(await effect.runPreApplyScript({targets})))
{
return
Expand Down
2 changes: 1 addition & 1 deletion modules/system/chat-wfrp4e.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ export default class ChatWFRP {

// let effect = actor.populateEffect(effectId, item, test)

let targets = (game.user.targets.size ? game.user.targets.map(i => i.actor) : test.context.targets.map(t => WFRP_Utility.getToken(t))).map(t => t.actor)
let targets = (game.user.targets.size ? Array.from(game.user.targets) : test.context.targets.map(t => WFRP_Utility.getToken(t))).map(t => t.actor)

if (!(await effect.runPreApplyScript({test, targets})))
{
Expand Down

0 comments on commit 43028eb

Please sign in to comment.