So, I'm happily coding along, and I realize that I have no way of detecting if a player dismounts. I can hook into the UNIT_AURA event, and filter it down to player - but I'm not sure where to go from there. I found SpecialEvent-Mount-2.0, but that's for Ace2, and I'm using Ace3.
Is there an Ace3 version? I can't find one anywhere.
Alternately, is there a way to scan the tooltips of buffs for "Increases flight speed by" and "Increases speed by"? I'd think an on-demand scan would be best.
You could scan buff tooltips... but you'd have to do it on every UNIT_AURA event for the player in order for it to work. I think it would be faster to cache a list of the mounts the player knows (see GetNumCompanions and GetCompanionInfo), and just scan the spell IDs (see UnitBuff). Then, if a mount buff is found, save that in a variable, and on subsequent UNIT_AURAs just check if that buff is found. If not, you've dismounted, and clear the variable.