WoW API: GetPlayerBuff
Jump to navigation
Jump to search
← WoW API < GetPlayerBuff
DEPRICATED This API was removed in 3.0 [1]. The following commands are now in use:
- name, rank, texture, count, debuffType, duration, timeLeft, untilCanceled = UnitAura("unit", [index] or ["name", "rank"][, "filter"]);
- name, rank, texture, count, debuffType, duration, timeLeft, untilCanceled = UnitBuff("unit", [index] or ["name", "rank"][, "filter"]);
- name, rank, texture, count, debuffType, duration, timeLeft, untilCanceled = UnitDebuff("unit", [index] or ["name", "rank"][, "filter"]);
Retrieve info about a certain player buff of a certain type.
buffIndex, untilCancelled = GetPlayerBuff(buffId, buffFilter);
- Arguments
- (Number buffId)
- buffId
- The id of the buff to retrieve. Starts at 0 and goes up to 15 (may get higher).
- Burning Crusade : Starts at 1 and goes up to 16.
- (String buffFilter)
- buffFilter
- The "filter" to use when selecting buffs. Will affect what types of buffs are retrieved.
- Verified buffFilters:
- "HELPFUL|HARMFUL|PASSIVE"
- "HELPFUL"
- "HARMFUL"
- Theoretically, buffFilters can be any combination of HELPFUL, HARMFUL, PASSIVE, CANCELABLE, NOT_CANCELABLE according to comments in the source code.
- Returns
- (Number buffIndex)
- buffIndex
- The index of the buff. Mainly to use for other GetPlayerBuffXYZ functions. If below zero, indicates there is no such buff.
- Burning Crusade : If zero, indicates there is no such buff.
- (Number untilCancelled)
- untilCancelled
- If 1, this buff will last until it is cancelled (Aura, Aspect, Stealth).
- Example
local buffIndex, untilCancelled = GetPlayerBuff(0, "HELPFUL|HARMFUL|PASSIVE");
- Result
Retrieves buff info about the first buff you have.
- Description
- Retrieves info and identifier about a certain effect on the player.
- See Also