Skip to content

Commit

Permalink
Merge pull request dmdorman#1332 from phBalance/phBalance/spend-end-i…
Browse files Browse the repository at this point in the history
…n-combat

fix(endurance): spend endurance in combat not out of combat
  • Loading branch information
phBalance authored Oct 19, 2024
2 parents 1df8060 + 68c2bfa commit 75be34f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/item/item-attack.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3333,7 +3333,7 @@ async function spendResourcesToUse(
const automation = game.settings.get(HEROSYS.module, "automation");
const actorInCombat = actor.inCombat;
const noEnduranceUse =
actorInCombat && // TODO: Not sure if we should have this or not. We had it in toggle() but not elsewhere.
!actorInCombat && // TODO: Not sure if we should have this or not. We had it in toggle() but not elsewhere.
(automation === "all" ||
(automation === "npcOnly" && actor.type == "npc") ||
(automation === "pcEndOnly" && actor.type === "pc"));
Expand Down

0 comments on commit 75be34f

Please sign in to comment.