Skip to main content

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

ParameterDescription
BaseObjectThe Source character whose aggro list is inspected
NonBaseObjectThe counterpart character to look for (resolved automatically as the opposite of BaseObject)
CompareTypeEqual: true when the (mode) condition holds. NotEqual: true when it does not.
S1NAME_None: presence in the aggro list. "Top": is the highest-aggro target.

Examples

DescriptionBaseObjectCommandCompareTypeS1
If the counterpart is in Self's aggro listSelfIsAggroTargetEqual
If the counterpart is not in Self's aggro listSelfIsAggroTargetNotEqual
If the counterpart is Self's highest-aggro targetSelfIsAggroTargetEqualTop