Esempio n. 1
0
        public static void Npc18839()
        {
            //Волшебный рак

            if (!CommandHasBuff(510, BattlePet.Skills.PetOwner.Me))
            {
                GoldenPet.Cast(2);
            }

            if (GoldenPet.ActiveSlotMe.PetHP() <= 70 && GoldenPet.CanCast(3))
            {
                GoldenPet.Cast(3);
            }
            if (CommandHasBuff(510, BattlePet.Skills.PetOwner.Me) && !GoldenPet.CanCast(3))
            {
                if (GoldenPet.Info(1).Stats.HealthPercentage < GoldenPet.ActiveSlotMe.PetHP() && GoldenPet.ActiveSlotMe != 1)
                {
                    BattlePet.Skills.ChangePet(1);
                }
                if (GoldenPet.Info(2).Stats.HealthPercentage < GoldenPet.ActiveSlotMe.PetHP() && GoldenPet.ActiveSlotMe != 2)
                {
                    BattlePet.Skills.ChangePet(2);
                }
                if (GoldenPet.Info(3).Stats.HealthPercentage < GoldenPet.ActiveSlotMe.PetHP() && GoldenPet.ActiveSlotMe != 3)
                {
                    BattlePet.Skills.ChangePet(3);
                }
            }

            GoldenPet.Cast(1);
        }
Esempio n. 2
0
        private static void Handler_PET_BATTLE_PET_CHANGED(List <string> args)
        {
            if (!On)
            {
                return;
            }
            Logging.WriteDebug("Смена петов " + args[0]);
            if (args[0] == null || args[0].ToInt32() == 1)
            {
                NextChangePet.Restart();
                return;
            }
            if (GoldenPet.Round <= 0)
            {
                return;
            }

            //if (GoldenPet.CurrentHp <= 1||(GoldenPet.CurrentHp >= 40 && GoldenPet.CurrentHp <= 80))
            //{
            //    GoldenPet.GetChangePet();

            //}
            if (args[0].ToInt32() == 2 && ImpruvedLogic)
            {
                GoldenPet.GetChangePet();
            }
        }
Esempio n. 3
0
        public override void OnEnable()
        {
            if (IsEnabled)
            {
                return;
            }
            IsEnabled      = true;
            Slot1SwapLevel = 1;
            Slot2SwapLevel = 25;
            Slot3SwapLevel = 25;
            EnemyLevel     = 25;
            HpFactor       = 31;
            AdFactor       = 42;
            DisFactor      = 29;
            Globals.CustomClass_OnLoad();

            GetAttachEvent();
            Logging.Write("{0} включен {1}", Name, Version);
            Logging.Write("Я - {0}", Game.PlayerName);

            if (Game.GetZoneID == 6771)
            {
                GoldenPet.SetPetForEncounter();
            }
            GoldenPet.UpdateSlot();
            GetPetting.GetPet();
        }
Esempio n. 4
0
 public static void Npc55386()
 {
     //Морской пони
     //  Logging.Write(BattlePet.Game.GetNumPetsInBattle(BattlePet.Skills.PetOwner.Enemy).ToString());
     if (BattlePet.Skills.GetHealth(BattlePet.Skills.PetOwner.Enemy, 2) == 0 && BattlePet.Skills.GetHealth(BattlePet.Skills.PetOwner.Enemy, 3) == 0)
     {
         Logging.Write("Враг 1");
         if (GoldenPet.CanCast(3))
         {
             GoldenPet.Cast(3);
             return;
         }
         if (!CommandHasBuff(316, BattlePet.Skills.PetOwner.Enemy) && GoldenPet.CanCast(2))
         {
             Logging.Write("Cast 2");
             GoldenPet.Cast(2);
             return;
         }
         if (!BattlePet.Game.IsSkipAvailable() || BattlePet.Game.IsWaitingOpponent)
         {
             return;
         }
         Logging.Write("SkipMove");
         BattlePet.Skills.SkipMove();
         return;
     }
     if (GoldenPet.CanCast(1))
     {
         GoldenPet.Cast(1);
         return;
     }
     Logging.Write("Обычная логика");
 }
Esempio n. 5
0
        private static void UpdateForm()
        {
            var type  = Globals.Form.comboBox1.SelectedIndex;
            var level = (int)Globals.Form.EnemyLevel.Value;

            var slot1 = GoldenPet.BattleRating(1.GetPetlevel(), 1.PetHP(), BattlePet.Skills.GetPetType(BattlePet.Skills.PetOwner.Me, 1), type, level);
            var slot2 = GoldenPet.BattleRating(2.GetPetlevel(), 2.PetHP(), BattlePet.Skills.GetPetType(BattlePet.Skills.PetOwner.Me, 2), type, level);
            var slot3 = GoldenPet.BattleRating(3.GetPetlevel(), 3.PetHP(), BattlePet.Skills.GetPetType(BattlePet.Skills.PetOwner.Me, 3), type, level);

            Globals.Form.pictureBox2.WaitOnLoad = false;
            Globals.Form.pictureBox2.LoadAsync(ImgUrl(GoldenPet.Info(1).IconPath));
            Globals.Form.pictureBox3.WaitOnLoad = false;
            Globals.Form.pictureBox3.LoadAsync(ImgUrl(GoldenPet.Info(2).IconPath));
            Globals.Form.pictureBox4.WaitOnLoad = false;
            Globals.Form.pictureBox4.LoadAsync(ImgUrl(GoldenPet.Info(3).IconPath));
            Globals.Form.label11.Visible = true;
            Globals.Form.label11.Text    = GoldenPet.Info(1).Name;
            Globals.Form.label10.Visible = true;
            Globals.Form.label10.Text    = GoldenPet.Info(2).Name;
            Globals.Form.label9.Visible  = true;
            Globals.Form.label9.Text     = GoldenPet.Info(3).Name;
            Globals.Form.label6.Visible  = true;
            Globals.Form.label6.Text     = slot1.ToString();
            Globals.Form.label7.Visible  = true;
            Globals.Form.label7.Text     = slot2.ToString();
            Globals.Form.label8.Visible  = true;
            Globals.Form.label8.Text     = slot3.ToString();
        }
Esempio n. 6
0
 private static bool Fast(int spell)
 {
     if (!GoldenPet.CanCast(spell))
     {
         return(false);
     }
     GoldenPet.Cast(spell);
     return(true);
 }
Esempio n. 7
0
        private static void Handler_PET_BATTLE_TURN_END(List <string> args)
        {
            Logging.Write("Handler_PET_BATTLE_TURN_END");
            Logic.Logic.TurnEnd = true;
            if (!On)
            {
                return;
            }
#if DEBUG
            Logging.Write("конец хода");
            if (BattlePet.Game.IsWaitingOpponent)
            {
                Logging.Write("IsWaitingOpponent");
            }
#endif

            if (args == null || args[0] == null)
            {
#if DEBUG
                Logging.WriteDebug("неравно");
#endif


                if (!GoldenPet.CanCast(1) && !GoldenPet.CanCast(2) && !GoldenPet.CanCast(3) && !BattlePet.Game.IsWaitingOpponent)
                {
                    if (BattlePet.Skills.CanPetSwapIn(1))
                    {
                        BattlePet.Skills.ChangePet(1);
                    }
                    if (BattlePet.Skills.CanPetSwapIn(2))
                    {
                        BattlePet.Skills.ChangePet(2);
                    }
                    if (BattlePet.Skills.CanPetSwapIn(3))
                    {
                        BattlePet.Skills.ChangePet(3);
                    }
                    if (BattlePet.Game.IsSkipAvailable() && !BattlePet.Game.IsWaitingOpponent)
                    {
                        BattlePet.Skills.SkipMove();
                        return;
                    }
                    // GoldenPet.GetChangePet();
                    return;
                }

                //GoldenPet.Pet[GoldenPet.ActiveSlotMe]();
                return;
            }
            GoldenPet.Round     = args[0].ToInt32();
            GoldenPet.NextRound = true;
            GoldenPet.Run();
            // Handler_PET_BATTLE_TURN_STARTED(args);
        }
Esempio n. 8
0
 public static void Npc23274()
 {
     //вонюща
     Logging.Write("Внимание!!! Работает логика турнира небожителей");
     if (GoldenPet.CanCast(3))
     {
         GoldenPet.Cast(3);
         return;
     }
     BattlePet.Game.ForfeitGame();
 }
Esempio n. 9
0
        public static void Npc24388()
        {
            //Зубастик

            if (GoldenPet.CanCast(BattlePet.Skills.PetAbilityIndex.Ability3) && !CommandHasBuff(491, BattlePet.Skills.PetOwner.Enemy))
            {
                GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability1);
            }
            if (GoldenPet.CanCast(BattlePet.Skills.PetAbilityIndex.Ability3) && CommandHasBuff(491, BattlePet.Skills.PetOwner.Enemy))
            {
                GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability3);
            }
            GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability2);
        }
Esempio n. 10
0
 public static void Npc68658()
 {
     //Маленький поглотитель разума
     if (FastAll(2, 3, 1))
     {
         return;
     }
     if (!GoldenPet.CanCast(1) && GoldenPet.CanCast(2) && !GoldenPet.CanCast(3))
     {
         Lua.FrameScript_Execute("C_PetBattles.SkipTurn()");
         return;
     }
     Logging.WriteDebug("Конец логики");
 }
Esempio n. 11
0
        public static void End()
        {
            TurnEnd             = false;
            GoldenPet.NextRound = true;
            if (BattlePet.Skills.HasAuraById(BattlePet.Skills.PetOwner.Me, 927))
            {
                Logging.Write("Пропускаю");
                Lua.FrameScript_Execute("C_PetBattles.SkipTurn()");

                // if (BattlePet.Game.IsSkipAvailable())PetBattleEasy.Cast(BattlePet.Skills.PetAbilityIndex.SkipMove);
            }
            if (!GoldenPet.MeBestPet && PetBattleEasy.ImpruvedLogic)
            {
                GoldenPet.GetChangePet();
            }

            Logging.Write("Ход завершен");
        }
Esempio n. 12
0
        public static void Npc72462()
        {
            //чи-чи
            var hp = GoldenPet.GetActiveSlot(BattlePet.Skills.PetOwner.Me).PetHP();

            if (!CommandHasBuff(255, BattlePet.Skills.PetOwner.Me))
            {
                if (GoldenPet.CanCast(BattlePet.Skills.PetAbilityIndex.Ability2))
                {
                    GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability2);
                }
            }
            if (hp < 60 && GoldenPet.CanCast(BattlePet.Skills.PetAbilityIndex.Ability3))
            {
                GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability3);
            }
            GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability1);
        }
Esempio n. 13
0
 public static void Npc45340()
 {
     //Ископаемый детеныш
     if (GoldenPet.CanCast(3) && BattlePet.Game.GetNumPetsInBattle(BattlePet.Skills.PetOwner.Enemy) > 1)
     {
         GoldenPet.Cast(3);
         return;
     }
     if (GoldenPet.CanCast(2) && GoldenPet.ActiveSlotMe.PetHP() >= 15 && GoldenPet.ActiveSlotMe.PetHP() <= 70)
     {
         GoldenPet.Cast(2);
         return;
     }
     if (Fast(1))
     {
         return;
     }
     Logging.Write("Обычная логика");
 }
Esempio n. 14
0
        public static void Npc69796()
        {
            //Ногокус
            if (!EnemyHaveBuff("Черный коготь") && GoldenPet.CanCast(BattlePet.Skills.PetAbilityIndex.Ability1))
            {
                Logging.WriteDebug("Нет бафа когтя. Бью");
                GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability2);
            }

            if (GoldenPet.CanCast(BattlePet.Skills.PetAbilityIndex.Ability1))
            {
                GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability1);
            }
            if (GoldenPet.CanCast(BattlePet.Skills.PetAbilityIndex.Ability3))
            {
                GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability3);
            }
            BattlePet.Skills.ChangePet(2);
        }
Esempio n. 15
0
 public static void Npc77221()
 {
     //Железная звездочка
     if (CommandHasBuff(207, BattlePet.Skills.PetOwner.Me) && CommandHasBuff(458, BattlePet.Skills.PetOwner.Me))
     {
         GoldenPet.Cast(1);
     }
     if (!CommandHasBuff(458, BattlePet.Skills.PetOwner.Me))
     {
         GoldenPet.Cast(1);
     }
     if (!CommandHasBuff(207, BattlePet.Skills.PetOwner.Me) && GoldenPet.CanCast(3))
     {
         GoldenPet.Cast(3);
     }
     if (!CommandHasBuff(639, BattlePet.Skills.PetOwner.Enemy))
     {
         GoldenPet.Cast(2);
     }
     GoldenPet.Cast(1);
 }
Esempio n. 16
0
        public static void Npc64899()
        {
            //Механический пандаренский дракончик

            if (GoldenPet.CanCast(3))
            {
                GoldenPet.Cast(3);
                return;
            }
            if (GoldenPet.CanCast(2) && (BattlePet.Game.GetNumPetsInBattle(BattlePet.Skills.PetOwner.Enemy) > 1))
            {
                GoldenPet.Cast(2);
                return;
            }
            if (CommandHasBuff(333, BattlePet.Skills.PetOwner.Me))
            {
                GoldenPet.Cast(1);
                return;
            }
            if (!CommandHasBuff(333, BattlePet.Skills.PetOwner.Me) && !GoldenPet.CanCast(3) && BattlePet.Game.GetNumPetsInBattle(BattlePet.Skills.PetOwner.Me) == 3)
            {
                if (BattlePet.Skills.CanUseAbility(BattlePet.Skills.PetAbilityIndex.Ability3, BattlePet.Skills.PetOwner.Me, 2))
                {
                    BattlePet.Skills.ChangePet(2);
                    return;
                }
                if ((3.PetHP() > 1.PetHP() + 10) && GoldenPet.ActiveSlotMe != 3)
                {
                    BattlePet.Skills.ChangePet(3);
                    return;
                }
                if ((1.PetHP() > 3.PetHP() + 10) && GoldenPet.ActiveSlotMe != 1)
                {
                    BattlePet.Skills.ChangePet(1);
                    return;
                }
            }

            GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability1);
        }
Esempio n. 17
0
        private static void GetRegStart()
        {
            if (!On)
            {
                return;
            }
            var milliseconds = (TimeSpan.FromMilliseconds(1000 - DateTime.Now.Millisecond));
            var seconds      = TimeSpan.FromSeconds((10 - (DateTime.Now.Second % 10)));
            var timeout      = seconds + milliseconds;
            var time         = DateTime.Now + timeout;

            Logging.Write("Рега будет в {0}.{1} ", time.Second, time.Millisecond);
            GoldenPet.UpdateSlot();
            //  Thread.Sleep(timeout);

            do
            {
                Thread.Sleep(10);
            } while (DateTime.Now < time);

            BattlePet.Game.StartPVPMatchmaking();
        }
Esempio n. 18
0
        public static void Npc71033()
        {
            //Злобный бес
            if (!CommandHasBuff(408, BattlePet.Skills.PetOwner.Me))
            {
                GoldenPet.Cast(2);
                return;
            }
            if (GoldenPet.ActiveSlotEnemy.PetInfo().Type == Enums.WoWCombatPetType.Mechanical &&
                GoldenPet.ActiveSlotMe.PetHP() >= 70)
            {
                GoldenPet.Cast(1);
                return;
            }
            if (GoldenPet.CanCast(3))
            {
                GoldenPet.Cast(3);
                return;
            }

            if (!GoldenPet.CanCast(3) && CommandHasBuff(408, BattlePet.Skills.PetOwner.Me) && (GoldenPet.ActiveSlotMe.PetHP() + 10 < 1.PetHP()) || (GoldenPet.ActiveSlotMe.PetHP() + 10 < 3.PetHP()) && BattlePet.Game.GetNumPetsInBattle(BattlePet.Skills.PetOwner.Me) == 3)
            {
                if (1.PetHP() > 3.PetHP())
                {
                    BattlePet.Skills.ChangePet(1);
                }
                if (1.PetHP() < 3.PetHP())
                {
                    BattlePet.Skills.ChangePet(3);
                }
                return;
            }
            if (GoldenPet.CanCast(1))
            {
                GoldenPet.Cast(1);
                return;
            }
            Logging.Write("Обычная логика");
        }
Esempio n. 19
0
        private static void Handler_PET_BATTLE_TURN_STARTED(List <string> args)
        {
#if DEBUG
            Logging.Write("PET_BATTLE_TURN_STARTED");
#endif
            Logging.Write("PET_BATTLE_TURN_STARTED");
            if (!GoldenPet.NextRound)
            {
                return;
            }
            GoldenPet.NextRound = false;

            Logging.Write(GoldenPet.ActiveSlotMe.PetInfo().Name + ". ID:" + GoldenPet.ActiveSlotMe.PetInfo().EntryId + " Slot:" + GoldenPet.ActiveSlotMe + " HP:" + GoldenPet.ActiveSlotMe.PetHP() +
                          " Round:" + GoldenPet.Round + " Поток:" + Thread.CurrentThread.ManagedThreadId);

            // Logging.Write("Лучший слот - {0}. Играю - {1}", GoldenPet.BestSlot, GoldenPet.ActiveSlotMe);

            // Logging.WriteDebug(GoldenPet.SpeedMe1 + " " + GoldenPet.SpeedMe2 + " " + GoldenPet.SpeedMe3);
            //Logging.WriteDebug(GoldenPet.SpeedEnemy1 + " " + GoldenPet.SpeedEnemy2 + " " + GoldenPet.SpeedEnemy3);


            GoldenPet.Run();
        }
Esempio n. 20
0
        public static void Npc71488()
        {
            //  Logging.Write(aura.AuraId+" "+aura.TurnsRemaining);
            //Цветущее древо
            if (GoldenPet.CanCast(3) && GoldenPet.ActiveSlotMe.PetHP() <= 80)
            {
                GoldenPet.Cast(3);
                return;
            }

            if (!CommandHasBuff(267, BattlePet.Skills.PetOwner.Me))
            {
                Logging.Write("Фотосинтез");

                GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability2);
                return;
            }
            //if (GoldenPet.CanCast(BattlePet.Skills.PetAbilityIndex.Ability3))
            //{
            //    GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability3);
            //    // return;
            //}
            if (!CommandHasBuff(961, BattlePet.Skills.PetOwner.Me) &&
                GoldenPet.CanCast(BattlePet.Skills.PetAbilityIndex.Ability1))
            {
                Logging.Write("Кора");

                GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability1);
                return;
            }

            if (Fast(1))
            {
                return;
            }
            Logging.Write("Обычная логика");
        }
Esempio n. 21
0
 private void SetPets_Click(object sender, EventArgs e)
 {
     GoldenPet.SetPetForEncounter();
 }
Esempio n. 22
0
 private void CheckCell_Click(object sender, EventArgs e)
 {
     GoldenPet.CheckingPetForCell();
 }
Esempio n. 23
0
 private static int RatingExt(int petLevel, int petHP, int petType, int enemyType, int enemyLevel)
 {
     return(GoldenPet.BattleRating(petLevel, petHP, petType, enemyType, enemyLevel));
 }
Esempio n. 24
0
        public static void Npc55367()
        {
            //Дирижабль ярмарки Новолуния

            #region Логика турнира небожителей

            if (Game.GetZoneID == 6771)
            {
                Logging.Write("Логика турнира небожителей");
                var id = ObjectManager.Target.Entry;

                #region 72009/72290

                if (id == 72009 || id == 72290)
                {
                    if (GoldenPet.CanCast(2))
                    {
                        GoldenPet.Cast(2);
                        return;
                    }
                    if (GoldenPet.CanCast(3))
                    {
                        GoldenPet.Cast(3);
                        return;
                    }
                    if (!GoldenPet.CanCast(3) && !GoldenPet.CanCast(2))
                    {
                        BattlePet.Skills.ChangePet(2);
                        return;
                    }
                    return;
                }

                #endregion


                #region 72291

                if (id == 72291)
                {
                    if (GoldenPet.Round >= 4)
                    {
                        if (!GoldenPet.CanCast(2))
                        {
                            return;
                        }
                        GoldenPet.Cast(2);
                        return;
                    }
                    if (GoldenPet.CanCast(3))
                    {
                        GoldenPet.Cast(3);
                        return;
                    }
                    if (!GoldenPet.CanCast(3))
                    {
                        BattlePet.Skills.ChangePet(2);
                        return;
                    }
                    return;
                }

                #endregion


                Logging.Write(id.ToString());
                return;
            }

            #endregion


            if (GoldenPet.CanCast(BattlePet.Skills.PetAbilityIndex.Ability3))
            {
                GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability3);
            }
            if (GoldenPet.CanCast(BattlePet.Skills.PetAbilityIndex.Ability2))
            {
                GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability2);
            }
            if (CommandHasBuff(333, BattlePet.Skills.PetOwner.Me))
            {
                GoldenPet.Cast(1);
                return;
            }
            if (!CommandHasBuff(333, BattlePet.Skills.PetOwner.Me) && !GoldenPet.CanCast(3) && BattlePet.Game.GetNumPetsInBattle(BattlePet.Skills.PetOwner.Me) == 3)
            {
                if (BattlePet.Skills.CanUseAbility(BattlePet.Skills.PetAbilityIndex.Ability3, BattlePet.Skills.PetOwner.Me, 2))
                {
                    BattlePet.Skills.ChangePet(2);
                }
                if (1.PetHP() > 3.PetHP() + 10)
                {
                    BattlePet.Skills.ChangePet(1);
                }
            }

            GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability1);

            //var hp = GoldenPet.GetActiveSlot(BattlePet.Skills.PetOwner.Me).PetHP();
            //var enemyhp = BattlePet.Skills.GetHealth(BattlePet.Skills.PetOwner.Enemy, GoldenPet.GetActiveSlotEnemy());
            //Logging.WriteDebug("hp " + hp + " enemyhp " + enemyhp);
            //if (enemyhp < 618) GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability2);
            //if (hp >= 80) GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability1);
            //if (hp < 80)
            //{
            //    if (GoldenPet.CanCast(BattlePet.Skills.PetAbilityIndex.Ability3)) GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability3);
            //}
            //if (CommandHasBuff(244, BattlePet.Skills.PetOwner.Me)) GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability2);
            //GoldenPet.Cast(BattlePet.Skills.PetAbilityIndex.Ability1);
        }
Esempio n. 25
0
 private void update_Click(object sender, EventArgs e)
 {
     GoldenPet.UpdateSlot();
 }
Esempio n. 26
0
        public static void Npc68662()
        {
            //Хромний

            #region Логика турнира

            if (Game.GetZoneID == 6771)
            {
                Logging.Write("Логика турнира небожителей");
                var id = ObjectManager.Target.Entry;

                #region 72009/72290

                if (id == 72009 || id == 72290)
                {
                    if (GoldenPet.CanCast(2))
                    {
                        GoldenPet.Cast(2);
                        return;
                    }
                    if (GoldenPet.CanCast(3))
                    {
                        GoldenPet.Cast(3);
                        return;
                    }

                    return;
                }

                #endregion

                #region 72285

                if (id == 72285)
                {
                    if (GoldenPet.CanCast(2))
                    {
                        GoldenPet.Cast(2);
                        return;
                    }
                    if (GoldenPet.CanCast(3))
                    {
                        GoldenPet.Cast(3);
                        return;
                    }


                    return;
                }

                #endregion

                #region 72291

                if (id == 72291)
                {
                    if (!GoldenPet.CanCast(3))
                    {
                        if (BattlePet.Skills.CanPetSwapIn(1))
                        {
                            BattlePet.Skills.ChangePet(1);
                            return;
                        }
                        return;
                    }

                    if (GoldenPet.CanCast(2))
                    {
                        GoldenPet.Cast(2);
                        return;
                    }
                    if (GoldenPet.CanCast(3))
                    {
                        GoldenPet.Cast(3);
                        return;
                    }


                    return;
                }

                #endregion
                Logging.Write(id.ToString());
                return;
            }

            #endregion

            if (FastAll(2, 3, 1))
            {
                return;
            }
            Logging.Write("Обычная логика");
        }