Condition_HasAggro
Description
Checks whether BaseObject (the Source) currently holds any aggro. This is a Source-only check and does not inspect NonBaseObject — unlike Condition_IsAggroTarget which answers a Source->counterpart relation.
S1 selects the check mode:
- S1 == NAME_None -> presence check. True when Source holds at least one aggro entry, regardless of Reason (B2AggroHelper::HasActiveAggro).
- S1 == AggroReason -> reason check. True only when Source holds an aggro bucket whose Reason matches S1 (B2AggroHelper::HasAggroByReason).
S1, when set, must be an Aggro.json row Id (e.g. AttackedByOther).
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The Source character whose aggro is inspected |
| CompareType | Equal: true when the (mode) condition holds. NotEqual: true when it does not. |
| S1 | NAME_None: any aggro presence. Else: AggroReason (Aggro.json Id) to look for. |
Examples
| Description | BaseObject | Command | CompareType | S1 |
|---|---|---|---|---|
| If Self currently holds any aggro | Self | HasAggro | Equal | |
| If Self currently holds no aggro | Self | HasAggro | NotEqual | |
| If Self holds AttackedByOther aggro | Self | HasAggro | Equal | AttackedByOther |