Fix/1149 fix targets apply effects (#1151)

* Temp ActionField attack type missing

* Move missing attack type to getModel

* Fix targets apply effects
This commit is contained in:
Dapoulp 2025-09-05 02:56:38 +02:00 committed by GitHub
parent f04619f73b
commit 2d92576121
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -169,7 +169,7 @@ export default class DhpChatMessage extends foundry.documents.ChatMessage {
if (this.system.source.item && this.system.source.action) { if (this.system.source.item && this.system.source.action) {
const action = this.getAction(actor, this.system.source.item, this.system.source.action); const action = this.getAction(actor, this.system.source.item, this.system.source.action);
if (!action || !action?.applyEffects) return; if (!action || !action?.applyEffects) return;
const targets = this.getTargetList(); const targets = this.system.hitTargets;
if (targets.length === 0) if (targets.length === 0)
ui.notifications.info(game.i18n.localize('DAGGERHEART.UI.Notifications.noTargetsSelected')); ui.notifications.info(game.i18n.localize('DAGGERHEART.UI.Notifications.noTargetsSelected'));
this.consumeOnSuccess(); this.consumeOnSuccess();