Code:
function indi_controle (tbl,spell)
local indi_table = {["Indi-Regen"]={target="Ally",buff=539},["Indi-Poison"]={target="Enemy"},["Indi-Refresh"]={target="Ally",buff=541},
["Indi-Haste"]={target="Ally",buff=580},["Indi-STR"]={target="Ally",buff=542},["Indi-DEX"]={target="Ally",buff=543},["Indi-VIT"]={target="Ally",buff=544},
["Indi-AGI"]={target="Ally",buff=545},["Indi-INT"]={target="Ally",buff=546},["Indi-MND"]={target="Ally",buff=547},["Indi-CHR"]={target="Ally",buff=548},
["Indi-Fury"]={target="Ally",buff=549},["Indi-Barrier"]={target="Ally",buff=550},["Indi-Acumen"]={target="Ally",buff=551},["Indi-Fend"]={target="Ally",buff=552},
["Indi-Precision"]={target="Ally",buff=553},["Indi-Voidance"]={target="Ally",buff=554},["Indi-Focus"]={target="Ally",buff=555},
["Indi-Attunement"]={target="Ally",buff=556},["Indi-Wilt"]={target="Enemy"},["Indi-Frailty"]={target="Enemy"},["Indi-Fade"]={target="Enemy"},
["Indi-Malaise"]={target="Enemy"},["Indi-Slip"]={target="Enemy"},["Indi-Torpor"]={target="Enemy"},["Indi-Vex"]={target="Enemy"},["Indi-Languor"]={target="Enemy"},
["Indi-Slow"]={target="Enemy"},["Indi-Paralysis"]={target="Enemy"},["Indi-Gravity"]={target="Enemy"},}
local indi = indi_table[spell.en]
if indi then
if tbl.target == "Ally" and indi.target == "Ally" then
if tbl.element == indi.element then
if buffactive[indi.buff] then
cancel_spell()
end
end
elseif tbl.target == indi.target and tbl.element == indi.element then
cancel_spell()
end
end
end
then you put one of these in yor function depending on ware your checking it from