Classes
c_buff_cache

c_buff_cache

Functions

get_buff

ArgumentTypeRequired
object_indexnumber+
returnsc_buff
local buff = features.buff_cache:get_buff(g_local.index, "asheqcastready")
 
if buff and buff:get_stacks() == 4 then
    print("Ashe has 4 stacks of her Q")
end

has_buff_of_type

ArgumentTypeRequired
object_indexnumber+
typee_buff_type+
returnsboolean
local is_blind = features.buff_cache:has_buff_of_type(g_local.index, e_buff_type.blind)
 
if is_blind then
    print("I'm blind!")
end

has_hard_cc

ArgumentTypeRequired
object_indexnumber+
returnsboolean

is_immobile

ArgumentTypeRequired
object_indexnumber+
returnsboolean

can_cast

ArgumentTypeRequired
object_indexnumber+
returnsboolean

get_all_buffs

ArgumentTypeRequired
object_indexnumber+
returnstable<c_buff>
local buffs = features.buff_cache:get_all_buffs(g_local.index)
 
-- Print all buffs on the local player
for _, buff in pairs(buffs) do
    print(buff:get_name())
end