Skip to content

Commit

Permalink
Update ac5e-hooks.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
thatlonelybugbear authored Apr 14, 2024
1 parent 6ede1b5 commit d193bb5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/ac5e-hooks.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ export function _preRollAttack(item, config) {
if (
settings.expandedConditions &&
!_hasStatuses(sourceActor, ['hiding']).length &&
!_hasStatuses(singleTargetActor, ['incapacitated', 'restrained']).length &&
!_hasStatuses(singleTargetActor, ['incapacitated', 'restrained'])
.length &&
_hasStatuses(singleTargetActor, statuses).length
) {
ac5eConfig.disadvantage.target = ac5eConfig.disadvantage.target.concat(
Expand Down Expand Up @@ -630,7 +631,8 @@ export function _preUseItem(item, config, options) {
if (
settings.expandedConditions &&
!_hasStatuses(sourceActor, ['hiding']).length &&
!_hasStatuses(singleTargetActor, ['incapacitated', 'restrained']).length &&
!_hasStatuses(singleTargetActor, ['incapacitated', 'restrained'])
.length &&
_hasStatuses(singleTargetActor, statuses).length
) {
ac5eConfig.disadvantage.target = ac5eConfig.disadvantage.target.concat(
Expand Down

0 comments on commit d193bb5

Please sign in to comment.