UnitFilters / TargetFilters
UnitFilters appear on targeted Abilities, Effects, Weapons and Projectiles and determine, if a unit can be targeted by them (or collided with them in case of Projectiles), based on the targeted unit’s state and alignment towards the source unit.
The default UnitFilter lets all targets pass through ( == it considers all targets valid).
A unit filter combines Unit Flags and Alignment. (Unit Flags being the sum of Unit State Flags and Unit Attribute Flags.)
How the Filters Work
In a Unit Filter each Unit Flag can be defined as one of:
-
Allowed: Units that meet any of these criteria are considered valid targets, provided they do not fall into any excluded categories and meet all required criteria.
-
Required: Units must meet all of these criteria to be considered valid targets.
-
Excluded: Units that meet any of these criteria are automatically invalidated as targets, regardless of allowed or required criteria.
Key Considerations
-
Required Criteria: These are the mandatory conditions that a unit must satisfy to be a valid target. If a unit does not meet all required conditions, it cannot be targeted, regardless of allowed or excluded criteria.
-
Allowed Criteria: These are additional conditions that can broaden the scope of targetable units but do not override required criteria. A unit must still meet all required criteria but can be filtered further by allowed criteria.
-
Excluded Criteria: These are conditions that immediately disqualify a unit from being a valid target, even if it meets all required and allowed criteria.