This function works perfect but doesn't register Dragonflying speed. Auto puts 420% while i'm airbourne which is just max normal flying speed. Is there an easy way to add Dragonflying to this or should I let it go
local _, runSpeed, flightSpeed, swimSpeed = GetUnitSpeed("player");
local speed;
if IsFlying() == true then
speed = flightSpeed;
elseif IsSwimming() == true then
speed = swimSpeed;
else
speed = runSpeed;
end
return string.format("%.0f", (speed / 7) * 100);
end```