mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
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:
parent
f04619f73b
commit
2d92576121
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue