Example #1
0
        private void CheckCurrentFormState()
        {
            Helpers.Debug($"Form:  {CurrentForm.ToString()}  PrevTrance: {PreviousTrance.ToString()}");
            if ((int)PetManager.ActivePetType == 10)
            {
                PreviousTrance = SummonerForm.DreadwormTrance;
                CurrentForm    = SummonerForm.Bahamut;
            }
            if ((int)PetManager.ActivePetType == 14)
            {
                if (CurrentForm.Equals(SummonerForm.DreadwormTrance))
                {
                    CurrentFormExpireTime += TimeSpan.FromSeconds(5);
                }
                CurrentForm = SummonerForm.FirebirdTrance;
            }
            if ((int)PetManager.ActivePetType != 14 && CurrentForm.Equals(SummonerForm.FirebirdTrance) && Resource.DreadwyrmTrance)
            {
                PreviousTrance         = SummonerForm.DreadwormTrance;
                CurrentForm            = SummonerForm.DreadwormTrance;
                CurrentFormExpireTime -= TimeSpan.FromSeconds(5);
            }


            if (!CurrentForm.Equals(SummonerForm.Normal) && IsCurrentFormExpired() && (!ShinraEx.Settings.SummonerOpener || Helpers.OpenerFinished))
            {
                Helpers.Debug("Set form to Normal");
                CurrentForm = SummonerForm.Normal;
            }
        }
Example #2
0
 private async Task <bool> FirebirdTrance()
 {
     if (ShinraEx.Settings.SummonerDreadwyrmTrance && !PreviousTrance.Equals(SummonerForm.FirebirdTrance))
     {
         if (await MySpells.FirebirdTrance.Cast())
         {
             CurrentForm = PreviousTrance = SummonerForm.FirebirdTrance;
             SetCurrentFormTimer(TimeSpan.FromSeconds(20));
             return(true);
         }
     }
     return(false);
 }
Example #3
0
 private async Task <bool> FirebirdTrance()
 {
     if (ShinraEx.Settings.SummonerDreadwyrmTrance && !PreviousTrance.Equals(SummonerForm.FirebirdTrance) && !ActionManager.CanCast(MySpells.Aetherpact.Name, Core.Player))
     {
         if (await MySpells.FirebirdTrance.Cast())
         {
             CurrentForm = PreviousTrance = SummonerForm.FirebirdTrance;
             SetCurrentFormTimer(TimeSpan.FromSeconds(20));
             return(true);
         }
     }
     return(false);
 }
Example #4
0
        private void CheckCurrentFormState()
        {
            Helpers.Debug("Form:  " + CurrentForm.ToString());
            if (!PreviousTrance.Equals(SummonerForm.FirebirdTrance) && Core.Player.HasAura("Everlasting Flight"))
            {
                PreviousTrance = SummonerForm.FirebirdTrance;
            }

            if (!CurrentForm.Equals(SummonerForm.Normal) && IsCurrentFormExpired())
            {
                Helpers.Debug("Set form to Normal");
                CurrentForm = SummonerForm.Normal;
            }
        }