public static void Initialize(bool slowRotation = false, bool framelock = true)
        {
            if (wManager.Wow.Memory.WowMemory.FrameIsLocked)
            {
                wManager.Wow.Memory.WowMemory.UnlockFrame();
            }

            _rotationSpellbook = new RotationSpellbook();
            _slowRotation      = slowRotation;
            _framelock         = framelock;
            RotationEventHandler.Start();
        }
        public static bool HaveAllBuffsKnown(this WoWUnit unit, params string[] names)
        {
            foreach (string name in names)
            {
                if (RotationSpellbook.IsKnown(name) && !unit.HasBuff(name))
                {
                    return(false);
                }
            }

            return(true);
        }
 public float CastTime()
 {
     return(RotationSpellbook.Get(_name, _rank ?? 0)?.CastTime ?? 0);
 }
 public bool IsKnown()
 {
     return(RotationSpellbook.IsKnown(_name, _rank ?? 1));
 }