BanzaiLib

From WowAce Wiki
Jump to: navigation, search
Ability Vanish.png This addon page is not claimed.
Please see Unclaimed Addon Pages for more details.

BanzaiLib provides you with a set of events and methods for aggro notification.

Banzai-1.0 requires AceLibrary, AceOO-2.0, AceEvent-2.0 and RosterLib-2.0.

API Documentation

Events

Banzai_UnitGainedAggro

Triggered when a unit in your raid group gains aggro.

Args

unitId
string - The unit ID that got aggro.
unitTable
table - Table containing the unit ID's of the units that aggroed the given unit.

Banzai_PlayerGainedAggro

Triggered when you gain aggro.

Args

unitTable
table - Table containing the unit ID's of the units that aggroed you.

Banzai_UnitLostAggro

Triggered when a unit in your raid group loses aggro.

Args

unitId
string - The unit that lost aggro.

Banzai_PlayerLostAggro

Triggered when you lost aggro.

Args

unitId
string - The unit that lost aggro.

Methods

GetUnitAggroByUnitId

Returns the current aggro status (nil/true) of the given unit ID.

Args

unitId
string - The unit ID to query for.

GetUnitAggroByUnitName

Returns the current aggro status (nil/true) of the given unit name.

Args

unitName
string - The unit to query for.