Classes
c_buff_manager

c_buff_manager

Functions

size

Calculates and returns current number of buffs in the buff manager.

ArgumentTypeRequired
returnsnumber
local local_buff_manager = g_local:get_buff_manager()
 
print("Local player has " .. local_buff_manager:size() .. " buffs.")

get_all

⚠️

Using c_buff_manager can have a big performance impact. Use c_buff_cache whenever possible.

ArgumentTypeRequired
returnstable<c_buff>
local local_buff_manager = g_local:get_buff_manager()
local buffs = local_buff_manager:get_all()
 
-- Print all buffs on the object (uncached)
for _, buff in pairs(buffs) do
    print(buff:get_name())
end