Example #1
0
        private static void Potions()
        {
            if (Player.Instance.IsInFountain() || Player.Instance.IsRecalling() ||
                Player.Instance.IsUsingPotion() ||
                (!Hunter.IsOwned() && !Refillable.IsOwned() && !Potion.IsOwned() && !Biscuit.IsOwned() &&
                 !Corrupting.IsOwned()) || !Value.Use("activator.potions"))
            {
                return;
            }

            if (Player.Instance.HealthPercent < Value.Get("activator.potions.hp"))
            {
                if (Hunter.IsReady())
                {
                    Hunter.Cast();
                }
                else if (Corrupting.IsReady())
                {
                    Corrupting.Cast();
                }
                else if (Refillable.IsReady())
                {
                    Refillable.Cast();
                }
                else if (Potion.IsReady())
                {
                    Potion.Cast();
                }
                else if (Biscuit.IsReady())
                {
                    Biscuit.Cast();
                }
            }
            if (Player.Instance.ManaPercent < Value.Get("activator.potions.mana"))
            {
                if (Hunter.IsReady())
                {
                    Hunter.Cast();
                }
                else if (Corrupting.IsReady())
                {
                    Corrupting.Cast();
                }
            }
        }
Example #2
0
        private void PotionManagement()
        {
            if (Player.Health + 250 > Player.MaxHealth)
            {
                return;
            }

            if (Player.HealthPercent > 50 && Player.CountEnemyHeroesInRange(700) == 0)
            {
                return;
            }

            if (Player.HasBuff("RegenerationPotion") ||
                Player.HasBuff("Item2010") ||
                Player.HasBuff("ItemCrystalFlask") ||
                Player.HasBuff("ItemCrystalFlaskJungle") ||
                Player.HasBuff("ItemDarkCrystalFlask"))
            {
                return;
            }

            if (Refillable.IsReady)
            {
                Refillable.Cast();
            }
            else if (Potion.IsReady)
            {
                Potion.Cast();
            }
            else if (Biscuit.IsReady)
            {
                Biscuit.Cast();
            }
            else if (Hunter.IsReady)
            {
                Hunter.Cast();
            }
            else if (Corrupting.IsReady)
            {
                Corrupting.Cast();
            }
        }
Example #3
0
        private void PotionManagement()
        {
            if (Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlaskJungle") || Player.HasBuff("ItemDarkCrystalFlask"))
            {
                return;
            }

            if (Potion.IsReady())
            {
                if (Player.Health + 200 < Player.MaxHealth && Player.CountEnemiesInRange(700) > 0)
                {
                    Potion.Cast();
                }
                else if (Player.Health < Player.MaxHealth * 0.6)
                {
                    Potion.Cast();
                }
                return;
            }
            else if (Biscuit.IsReady())
            {
                if (Player.Health + 250 < Player.MaxHealth && Player.CountEnemiesInRange(700) > 0)
                {
                    Biscuit.Cast();
                }
                else if (Player.Health < Player.MaxHealth * 0.6)
                {
                    Biscuit.Cast();
                }
                return;
            }
            else if (Hunter.IsReady())
            {
                if (Player.Health + 250 < Player.MaxHealth && Player.CountEnemiesInRange(700) > 0)
                {
                    Hunter.Cast();
                }
                else if (Player.Health < Player.MaxHealth * 0.6)
                {
                    Hunter.Cast();
                }
                return;
            }
            else if (Corrupting.IsReady())
            {
                if (Player.Health + 250 < Player.MaxHealth && Player.CountEnemiesInRange(700) > 0)
                {
                    Corrupting.Cast();
                }
                else if (Player.Health < Player.MaxHealth * 0.6)
                {
                    Corrupting.Cast();
                }

                return;
            }
            else if (Refillable.IsReady())
            {
                if (Player.Health + 250 < Player.MaxHealth && Player.CountEnemiesInRange(700) > 0)
                {
                    Refillable.Cast();
                }
                else if (Player.Health < Player.MaxHealth * 0.6)
                {
                    Refillable.Cast();
                }
                return;
            }
        }
Example #4
0
        private void PotionManagement()
        {
            if (!Player.InFountain() && !Player.HasBuff("Recall"))
            {
                if (ManaPotion.IsReady() && !Player.HasBuff("FlaskOfCrystalWater"))
                {
                    if (Player.CountEnemiesInRange(1200) > 0 && Player.Mana < 200)
                    {
                        ManaPotion.Cast();
                    }
                }

                if (Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlask") || Player.HasBuff("ItemCrystalFlaskJungle") || Player.HasBuff("ItemDarkCrystalFlask"))
                {
                    return;
                }

                if (Hunter.IsReady())
                {
                    if (Player.CountEnemiesInRange(700) > 0 && Player.Health + 200 < Player.MaxHealth)
                    {
                        Hunter.Cast();
                    }
                    else if (Player.Health < Player.MaxHealth * 0.6)
                    {
                        Hunter.Cast();
                    }
                    else if (Player.CountEnemiesInRange(1200) > 0 && Player.Mana < 200 && !Player.HasBuff("FlaskOfCrystalWater"))
                    {
                        Hunter.Cast();
                    }
                    return;
                }

                if (Corrupting.IsReady())
                {
                    if (Player.CountEnemiesInRange(700) > 0 && Player.Health + 200 < Player.MaxHealth)
                    {
                        Corrupting.Cast();
                    }
                    else if (Player.Health < Player.MaxHealth * 0.6)
                    {
                        Corrupting.Cast();
                    }
                    else if (Player.CountEnemiesInRange(1200) > 0 && Player.Mana < 200 && !Player.HasBuff("FlaskOfCrystalWater"))
                    {
                        Corrupting.Cast();
                    }
                    return;
                }

                if (Flask.IsReady())
                {
                    if (Player.CountEnemiesInRange(700) > 0 && Player.Health + 200 < Player.MaxHealth)
                    {
                        Flask.Cast();
                    }
                    else if (Player.Health < Player.MaxHealth * 0.6)
                    {
                        Flask.Cast();
                    }
                    else if (Player.CountEnemiesInRange(1200) > 0 && Player.Mana < 200 && !Player.HasBuff("FlaskOfCrystalWater"))
                    {
                        Flask.Cast();
                    }
                    return;
                }

                if (Refillable.IsReady())
                {
                    if (Player.CountEnemiesInRange(700) > 0 && Player.Health + 200 < Player.MaxHealth)
                    {
                        Refillable.Cast();
                    }
                    else if (Player.Health < Player.MaxHealth * 0.6)
                    {
                        Refillable.Cast();
                    }
                    return;
                }

                if (Potion.IsReady())
                {
                    if (Player.CountEnemiesInRange(700) > 0 && Player.Health + 200 < Player.MaxHealth)
                    {
                        Potion.Cast();
                    }
                    else if (Player.Health < Player.MaxHealth * 0.6)
                    {
                        Potion.Cast();
                    }
                    return;
                }

                if (Biscuit.IsReady())
                {
                    if (Player.CountEnemiesInRange(700) > 0 && Player.Health + 200 < Player.MaxHealth)
                    {
                        Biscuit.Cast();
                    }
                    else if (Player.Health < Player.MaxHealth * 0.6)
                    {
                        Biscuit.Cast();
                    }
                    return;
                }
            }
        }