One-click Mounts: Any location with airborne-dismount safety

Almost identical to the random locational mount macro, except it has a "safety" lock to prevent accidental dismounting while flying, but only supports one land and one flying mount.

/stopmacro [flying,nobtn:2]
/run if IsMounted()then return end local t if GetRealZoneText()=="Dalaran"and GetSubZoneText()~="Krasus' Landing"or GetZoneText()=="Wintergrasp"or not IsFlyableArea()then t=16 else t=7 end CallCompanion("MOUNT",t)
/dismount

Replace 16 with the position number of your desired land mount within your in-game mounts tab and 7 with your flying mount position number. Right-click to forcefully dismount while flying.

Got something to add, remove, or improve about this macro? Please let us know!