PLAYER_CAN_GLIDE_CHANGED indicates whether the player currently has dragonriding active. This can be when you are on a dragonriding mount or, as a Dracthyr, when you are soaring.
In most cases, this event fires as you'd expect, when you mount up, and when you dismount. However, in certain circumstances, this event is not fired even when it should. So far I've noted two occasions where I'd expect the event to fire and it doesn't.
When going through a portal while on a dragonriding mount to an area that does not allow dragonriding, or that dismounts you.
When taking a flight path while on a dragonriding mount.
This is inconvenient because it can lead to addons not knowing when you've actually dismounted without manually checking mount auras or by checking C_PlayerInfo.GetGlidingInfo in an OnUpdate script.
For a quick repro:
Open EventTrace and filter for PLAYER_CAN_GLIDE_CHANGED
Mount up on a dragonriding mount in Valdrakken
Head to the flight master and take a flight path
Observe event not firing, despite being dismounted
PLAYER_CAN_GLIDE_CHANGED
indicates whether the player currently has dragonriding active. This can be when you are on a dragonriding mount or, as a Dracthyr, when you are soaring.In most cases, this event fires as you'd expect, when you mount up, and when you dismount. However, in certain circumstances, this event is not fired even when it should. So far I've noted two occasions where I'd expect the event to fire and it doesn't.
This is inconvenient because it can lead to addons not knowing when you've actually dismounted without manually checking mount auras or by checking
C_PlayerInfo.GetGlidingInfo
in an OnUpdate script.For a quick repro:
PLAYER_CAN_GLIDE_CHANGED