I came up with the following function:
Lua Code:
function Lunar.Items:BCCIsFlyingMount(mount)
local items = { "Windrider", "Gryphon", "Cenarion War Hippogryph", "Netherwing Drake", "Nether Ray", "Ashes of Al'ar", "Flying Machine" }
for _,v in pairs(items) do
if string.find(mount, v) then
return true
end
end
return false
end
Where mount is the item's name.