@Harvest Golem you can use something like this,
local MountsNames = { }
for i = 1, GetNumCompanions('MOUNT') do
local _, Name = GetCompanionInfo('MOUNT', i);
table.insert(MountsNames, Name);
end
for B = 1 , 25 do
local BuffName = UnitBuff("player", B);
for Y = 1, #MountsNames do
if string.match(BuffName, MountsNames[Y]) then
return true;
else
return false;
end
end
end