Esempio n. 1
0
        internal static void HandleContextChanged(object sender, WoWContextEventArg e)
        {
            // Since we hooked this in ctor, make sure we are the selected CC
            if (RoutineManager.Current.Name != SingularRoutine.Instance.Name)
                return;

            if (e.CurrentContext == WoWContext.Battlegrounds || StyxWoW.Me.CurrentMap.IsRaid)
                DetachCombatLogEvent();
            else
                AttachCombatLogEvent();
        }
Esempio n. 2
0
 internal static void HandleContextChanged(object sender, WoWContextEventArg e)
 {
     if (e.CurrentContext != WoWContext.Battlegrounds)
     {
         BattlegroundStart = DateTime.UtcNow;
     }
     else
     {
         BattlegroundStart = DateTime.UtcNow + TimeSpan.FromSeconds(120);   // just add enough for now... accurate time set by event handler
     }
     if (e.PreviousContext == WoWContext.Battlegrounds)
     {
         StopMoving.AsSoonAsPossible(when => Styx.StyxWoW.IsInGame);
     }
 }
Esempio n. 3
0
        internal static void HandleContextChanged(object sender, WoWContextEventArg e)
        {
            // Since we hooked this in ctor, make sure we are the selected CC
            if (RoutineManager.Current == null || RoutineManager.Current.Name != SingularRoutine.Instance.Name)
            {
                return;
            }

            if (SingularSettings.Debug || (SingularRoutine.CurrentWoWContext != WoWContext.Battlegrounds && !StyxWoW.Me.CurrentMap.IsRaid))
            {
                AttachCombatLogEvent();
            }
            else
            {
                DetachCombatLogEvent();
            }
        }
 // set needtocheck flag anytime context changes
 static void PetManager_OnWoWContextChanged(object sender, WoWContextEventArg e)
 {
     NeedToCheckPetTauntAutoCast        = SingularSettings.Instance.PetAutoControlTaunt;
     PetSpellsAvailableAfterNeedToCheck = false;
 }
Esempio n. 5
0
 // Disable pet growl in instances but enable it outside.
 static void SingularRoutine_OnWoWContextChanged(object sender, WoWContextEventArg e)
 {
     Lua.DoString(e.CurrentContext == WoWContext.Instances
                      ? "DisableSpellAutocast(GetSpellInfo(2649))"
                      : "EnableSpellAutocast(GetSpellInfo(2649))");
 }
Esempio n. 6
0
 // Disable pet growl in instances but enable it outside.
 static void SingularRoutine_OnWoWContextChanged(object sender, WoWContextEventArg e)
 {
     Lua.DoString(e.CurrentContext == WoWContext.Instances
                      ? "DisableSpellAutocast(GetSpellInfo(2649))"
                      : "EnableSpellAutocast(GetSpellInfo(2649))");
 }
Esempio n. 7
0
 // set needtocheck flag anytime context changes
 static void PetManager_OnWoWContextChanged(object sender, WoWContextEventArg e)
 {
     NeedToCheckPetTauntAutoCast = SingularSettings.Instance.PetAutoControlTaunt;
     PetSpellsAvailableAfterNeedToCheck = false;
 }
Esempio n. 8
0
        internal static void HandleContextChanged(object sender, WoWContextEventArg e)
        {
            if (e.CurrentContext != WoWContext.Battlegrounds)
                BattlegroundStart = DateTime.Now;
            else
                BattlegroundStart = DateTime.Now + TimeSpan.FromSeconds(120);   // just add enough for now... accurate time set by event handler

            if (e.PreviousContext == WoWContext.Battlegrounds)
            {
                StopMoving.AsSoonAsPossible(when => Styx.StyxWoW.IsInGame );
            }
        }
Esempio n. 9
0
 // set needtocheck flag anytime context changes
 static void PetManager_OnWoWContextChanged(object sender, WoWContextEventArg e)
 {
     NeedToCheckPetTauntAutoCast = true;
 }