Its actually a good bit more complex than a 'zone test'.
Basically, you want to test your current mount, and only jump if it can fly. Determining if your current mount can fly is not a simple test, and requires a LINQ expression. Something akin to:
Code:
public bool IsMountedForFlying()
{
WoWAura mount = (from aura in Me.Auras.Values
from mounts in MountHelper.FlyingMounts
where (aura.SpellId == mounts.Spell.Id)
select aura).FirstOrDefault();
return (mount != null);
}
If there is a simpler test, *please* share it!
Of course, the straight-forward
Me.MovementInfo.CanFly may be sufficient for this goal.
CanFly should already have a test similar to the above built-in.
cheers,
chinajade