diff --git a/modules/actor/sheet/actor-sheet.js b/modules/actor/sheet/actor-sheet.js index 9949aa3ea..ac7195b28 100644 --- a/modules/actor/sheet/actor-sheet.js +++ b/modules/actor/sheet/actor-sheet.js @@ -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 diff --git a/modules/system/chat-wfrp4e.js b/modules/system/chat-wfrp4e.js index 929b84def..7e7e75755 100644 --- a/modules/system/chat-wfrp4e.js +++ b/modules/system/chat-wfrp4e.js @@ -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}))) {