Skip to content

Commit

Permalink
Prevent flanking highlighting from appearing for neutral actors (foun…
Browse files Browse the repository at this point in the history
  • Loading branch information
stwlam authored Jan 24, 2024
1 parent 1dbdf54 commit f092804
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/module/actor/creature/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,11 @@ abstract class CreaturePF2e<
focus.value = Math.clamped(Math.floor(focus.value), 0, focus.max) || 0;
}

// Disallow creatures not in either alliance to flank
if (this.system.details.alliance === null) {
attributes.flanking.canFlank = false;
}

imposeEncumberedCondition(this);
}

Expand Down

0 comments on commit f092804

Please sign in to comment.