Overview
The BuffTrigger system (BuffTrigger2) manages all “aura2” type triggers for buffs and debuffs. It provides efficient tracking of unit auras across single units, groups, and multi-target scenarios.System API
The BuffTrigger system is accessed through the globalBuffTrigger table or Private.triggerTypes["aura2"].
Add
Adds an aura, setting up internal data structures for all buff triggers.The aura data configuration
LoadDisplays
Loads and enables all buff triggers for an aura.The aura identifier
UnloadDisplays
Unloads and disables all buff triggers for an aura.The aura identifier
UnloadAll
Unloads all buff triggers.Delete
Removes all data for an aura.The aura identifier to delete
Rename
Renames an aura, updating all internal references.The current aura ID
The new aura ID
Modernize
Updates all buff triggers in aura data to the latest format.The aura data to modernize
Helper Functions
These functions are primarily used by WeakAuras Options.GetOverlayInfo
Returns overlay information for a trigger.The aura data
The trigger number
Table of overlay configurations
CanHaveTooltip
Determines the tooltip type for a trigger.The aura data
The trigger number
The tooltip type: “SPELL”, “UNIT_BUFF”, “UNIT_DEBUFF”, or nil
GetNameAndIcon
Returns the display name and icon for a trigger.The aura data
The trigger number
The display name
The icon texture path
GetAdditionalProperties
Returns tooltip text for additional properties.The aura data
The trigger number
Formatted tooltip text
GetTriggerConditions
Returns available conditions for a trigger.The aura data
The trigger number
Array of condition definitions
Match Data Structure
Internal match data structure for tracked auras.Aura name
Aura icon
Stack count
Debuff type: “magic”, “curse”, “disease”, “poison”, “enrage”, “none”
Aura duration
When the aura expires
Unit ID of the caster
Name of the caster
Spell ID of the aura
Unit ID that has the aura
Name of the unit
Aura index from UnitAura
Aura filter: “HELPFUL” or “HARMFUL”
Trigger Configuration
Buff trigger configuration options.Basic Settings
Must be “aura2” for buff triggers
Unit to check: “player”, “target”, “group”, “raid”, etc.
Filter by debuff type: “HELPFUL”, “HARMFUL”, or “BOTH”
Aura Matching
Array of aura names to match
Whether to match by name
Array of spell IDs to match
Whether to match by spell ID
Caster Filtering
Only match auras cast by player/pet
Match specific caster unit
Group Options
Display mode: “showOnActive”, “showOnMissing”, “showOnMatches”
Show one clone per match
Filter by match count
Minimum match count
Comparison operator:
>=, ==, <=