Skip to content

Commit 5fdbd17

Browse files
committed
a
1 parent 347076e commit 5fdbd17

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/config.js

+3
Original file line numberDiff line numberDiff line change
@@ -741,13 +741,16 @@ export function initConfig() {
741741
}
742742

743743
get targets() {
744+
console.log("Targets")
744745
const item = this.activity;
745746
const validTargets = ["creature", "ally", "enemy"];
746747
const actionType = item.actionType;
747748
const affects = item.target?.affects ?? {};
748749
const targetType = affects.type;
749750
if (!item.target?.template?.units && validTargets.includes(targetType)) {
750751
return affects.count ?? 1;
752+
} else if (validTargets.includes(targetType) && affects.count) {
753+
return affects.count;
751754
} else if (actionType === "mwak" || actionType === "rwak" || actionType === "msak" || actionType === "rsak") {
752755
return affects.count || 1;
753756
}

0 commit comments

Comments
 (0)