WoW:API GetPlayerBuffTimeLeft

From AddOn Studio
Revision as of 11:44, 14 February 2006 by WoWWiki>Tekkub (Fixed error with buffIndex/buffId)
Jump to navigation Jump to search
GetPlayerBuffTimeLeft -Documentation by Sarf-

Retrieve info about a certain player buff of a certain type.

buffTimeLeft = GetPlayerBuffTimeLeft(buffIndex)


Arguments
(Number buffIndex)
buffIndex
The index of the buff to retrieve. Can be obtained with GetPlayerBuff

Returns
(Number buffTimeLeft)
buffTimeLeft
The time (in seconds) left until the buff expires.

Example
local timeLeft = GetPlayerBuffTimeLeft(buffIndex)
Result

Retrieves amount of time left of the first buff you have.


Description
Retrieves time left until a certain buff expires.
See Also

Template:WoW API