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(); } }
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("Ход завершен"); }