Skip to content

Commit

Permalink
Update ac5e-hooks.mjs
Browse files Browse the repository at this point in the history
Should concentration always be associated with `con` ability?
  • Loading branch information
thatlonelybugbear authored Mar 22, 2024
1 parent a1d4db3 commit 9364a2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/ac5e-hooks.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {
_calcAdvantageMode,
_getDistance,
_hasAppliedEffects,
_hasItem,
_hasStatuses,
_localize,
_i18nConditions,
Expand Down Expand Up @@ -437,7 +438,7 @@ export function _preRollConcentration(actor, config) {
: _hasStatuses(actor, statuses);
change = true;
}
if (_autoEncumbrance(actor, abilityId)) {
if (_autoEncumbrance(actor, 'con')) { //to-do: check if we should allow for other abilities and not just hardcode 'con';
ac5eConfig.disadvantage = [
...ac5eConfig.disadvantage,
_i18nConditions('HeavilyEncumbered'),
Expand Down

0 comments on commit 9364a2d

Please sign in to comment.