示例#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;
            }
        }
示例#2
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;
            }
        }