Lore archive · Warcraft Wiki, 2023 dump
API GetPlayerBuff
Last wiki revision 2020-01-08
Retrieve info about a certain player buff of a certain type.
buffIndex, untilCancelled = GetPlayerBuff(buffId, buffFilter);
- buffId : number: The id of the buff to retrieve. 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.
- buffIndex : The index of the buff. Mainly to use for other GetPlayerBuffXYZ functions. If zero, there is no such buff.
- untilCancelled : If 1, this buff will last until it is cancelled (Aura, Aspect, Stealth).
local buffIndex, untilCancelled = GetPlayerBuff(0, "HELPFUL|HARMFUL|PASSIVE");
- Result : Retrieves buff info about the first buff you have.
- CancelPlayerBuff
- GetPlayerBuffApplications
- GetPlayerBuffTexture
- GetPlayerBuffTimeLeft
- GameTooltip:SetPlayerBuff
Source
https://warcraft.wiki.gg/wiki/API_GetPlayerBuff · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.