BanzaiLib
From WowAce Wiki
(Redirected from Banzai-1.0)
| Summary | |
|---|---|
| Lib: BanzaiLib | |
| Aggro notification library. | |
| TOC | 2.3 (20300) |
| Category | Libraries |
| Author | Rabbit |
| Details | |
| Version | 1.1 |
| Credits | maia |
| Embeds | Ace2, RosterLib |
| Links | |
| Betas | Ace SVN Zip |
| Changelog | FishEye |
Contents |
| | 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.
[edit]
API Documentation
[edit]
Events
[edit]
Banzai_UnitGainedAggro
Triggered when a unit in your raid group gains aggro.
[edit]
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.
[edit]
Banzai_PlayerGainedAggro
Triggered when you gain aggro.
[edit]
Args
- unitTable
- table - Table containing the unit ID's of the units that aggroed you.
[edit]
Banzai_UnitLostAggro
Triggered when a unit in your raid group loses aggro.
[edit]
Args
- unitId
- string - The unit that lost aggro.
[edit]
Banzai_PlayerLostAggro
Triggered when you lost aggro.
[edit]
Args
- unitId
- string - The unit that lost aggro.
[edit]
Methods
[edit]
GetUnitAggroByUnitId
Returns the current aggro status (nil/true) of the given unit ID.
[edit]
Args
- unitId
- string - The unit ID to query for.
[edit]
GetUnitAggroByUnitName
Returns the current aggro status (nil/true) of the given unit name.
[edit]
Args
- unitName
- string - The unit to query for.

