public static bool IsTurning(Unit unit, double tolerancy = 0) { double rotSpeed; if (!RotSpeedDictionary.TryGetValue(unit.Handle, out rotSpeed)) { return false; } return Math.Abs(rotSpeed) > tolerancy; }