The reason a combatant is an invalid automated-attack target — the first TARGET_INVALID_STATUSES entry it has (dead / vanquished) — or null when it is a valid target. Pure and unit-tested.
dead
vanquished
null
The target actor's active status-effect ids.
Whether the target combatant is Foundry-DEFEATED.
The disqualifying status id, or null.
The reason a combatant is an invalid automated-attack target — the first TARGET_INVALID_STATUSES entry it has (
dead/vanquished) — ornullwhen it is a valid target. Pure and unit-tested.