Skip to main content

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

ParameterDescription
BaseObjectThe Source character whose aggro is inspected
CompareTypeEqual: true when the (mode) condition holds. NotEqual: true when it does not.
S1NAME_None: any aggro presence. Else: AggroReason (Aggro.json Id) to look for.

Examples

DescriptionBaseObjectCommandCompareTypeS1
If Self currently holds any aggroSelfHasAggroEqual
If Self currently holds no aggroSelfHasAggroNotEqual
If Self holds AttackedByOther aggroSelfHasAggroEqualAttackedByOther