Condition_IsAggroTarget
Description
Checks whether NonBaseObject (the counterpart) is held as an aggro entry by BaseObject (the Source). With BaseObject == Self this answers "is the counterpart in my aggro list". Both checks look at the Source->Target direction only (not the reverse Target->Source).
S1 selects the check mode:
- S1 == NAME_None → presence check. True when the counterpart is anywhere in Source's aggro list (B2AggroHelper::IsAggroTargetOf).
- S1 == "Top" → top-target check. True only when the counterpart is Source's current highest-aggro (chase) target (B2AggroHelper::GetTopTarget).
"Top" is a literal sentinel string (case-sensitive), not an Aggro.json row Id.
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The Source character whose aggro list is inspected |
| NonBaseObject | The counterpart character to look for (resolved automatically as the opposite of BaseObject) |
| CompareType | Equal: true when the (mode) condition holds. NotEqual: true when it does not. |
| S1 | NAME_None: presence in the aggro list. "Top": is the highest-aggro target. |
Examples
| Description | BaseObject | Command | CompareType | S1 |
|---|---|---|---|---|
| If the counterpart is in Self's aggro list | Self | IsAggroTarget | Equal | |
| If the counterpart is not in Self's aggro list | Self | IsAggroTarget | NotEqual | |
| If the counterpart is Self's highest-aggro target | Self | IsAggroTarget | Equal | Top |