View Single Post
07-31-21, 09:09 AM   #7
fullmoon_sulfuras
A Fallenroot Satyr
Join Date: Dec 2019
Posts: 21
I came up with the following function:

Lua Code:
  1. function Lunar.Items:BCCIsFlyingMount(mount)
  2.     local items = { "Windrider", "Gryphon", "Cenarion War Hippogryph", "Netherwing Drake", "Nether Ray", "Ashes of Al'ar", "Flying Machine" }
  3.  
  4.     for _,v in pairs(items) do
  5.         if string.find(mount, v) then
  6.             return true
  7.         end
  8.     end
  9.     return false
  10. end

Where mount is the item's name.
  Reply With Quote