c_buff_cache
Functions
get_buff
Argument | Type | Required |
---|---|---|
object_index | number | + |
returns | c_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
Argument | Type | Required |
---|---|---|
object_index | number | + |
type | e_buff_type | + |
returns | boolean |
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
Argument | Type | Required |
---|---|---|
object_index | number | + |
returns | boolean |
is_immobile
Argument | Type | Required |
---|---|---|
object_index | number | + |
returns | boolean |
can_cast
Argument | Type | Required |
---|---|---|
object_index | number | + |
returns | boolean |
get_all_buffs
Argument | Type | Required |
---|---|---|
object_index | number | + |
returns | table<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