View Single Post
02-12-14, 05:26 PM   #5
Vrul
A Scalebane Royal Guard
 
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 404
semlar gave you the best way but if you still wanted to see your original method shrunk a bit for educational purposes:
Code:
/run local f,p=IsFlyableArea(),"MOUNT"
for i=1,GetNumCompanions(p) do 
    local _,v=GetCompanionInfo(p,i)
    if f and v=="Obsidian Nightwing" or v=="Vicious Skeletal Warhorse" then 
        CallCompanion(p,i) 
    end 
end
  Reply With Quote