mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
add tContains function
This commit is contained in:
@@ -106,6 +106,19 @@ function issecurevariable(t, var)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function tContains(table, item)
|
||||||
|
local index = 1
|
||||||
|
|
||||||
|
while table[index] do
|
||||||
|
if item == table[index] then
|
||||||
|
return 1
|
||||||
|
end
|
||||||
|
index = index + 1
|
||||||
|
end
|
||||||
|
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
function UnitAura(unit, i, filter)
|
function UnitAura(unit, i, filter)
|
||||||
assert((type(unit) == "string" or type(unit) == "number") and (type(i) == "string" or type(i) == "number"), "Usage: UnitAura(\"unit\", index [, filter])")
|
assert((type(unit) == "string" or type(unit) == "number") and (type(i) == "string" or type(i) == "number"), "Usage: UnitAura(\"unit\", index [, filter])")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user