Esempio n. 1
0
 void AutoPotions()
 {
     if (FiddleTheTrollMeNu.SpellsPotionsCheck() && !Player.IsInShopRange() &&
         Player.HealthPercent <= FiddleTheTrollMeNu.SpellsPotionsHp() &&
         !(Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemCrystalFlaskJungle") ||
           Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlask") ||
           Player.HasBuff("ItemDarkCrystalFlask")))
     {
         if (Activator.HuntersPot.IsReady() && Activator.HuntersPot.IsOwned())
         {
             Activator.HuntersPot.Cast();
         }
         if (Activator.CorruptPot.IsReady() && Activator.CorruptPot.IsOwned())
         {
             Activator.CorruptPot.Cast();
         }
         if (Activator.Biscuit.IsReady() && Activator.Biscuit.IsOwned())
         {
             Activator.Biscuit.Cast();
         }
         if (Activator.HpPot.IsReady() && Activator.HpPot.IsOwned())
         {
             Activator.HpPot.Cast();
         }
         if (Activator.RefillPot.IsReady() && Activator.RefillPot.IsOwned())
         {
             Activator.RefillPot.Cast();
         }
     }
     if (FiddleTheTrollMeNu.SpellsPotionsCheck() && !Player.IsInShopRange() &&
         Player.ManaPercent <= FiddleTheTrollMeNu.SpellsPotionsM() &&
         !(Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemCrystalFlaskJungle") ||
           Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlask") ||
           Player.HasBuff("ItemDarkCrystalFlask")))
     {
         if (Activator.CorruptPot.IsReady() && Activator.CorruptPot.IsOwned())
         {
             Activator.CorruptPot.Cast();
         }
     }
 }
Esempio n. 2
0
        private static void GameOnDraw(EventArgs args)
        {
            if (FiddleTheTrollMeNu.Nodraw())
            {
                return;
            }

            {
                if (FiddleTheTrollMeNu.DrawingsQ())
                {
                    new Circle {
                        Color = Color.LawnGreen, Radius = Q.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (FiddleTheTrollMeNu.DrawingsW())
                {
                    new Circle {
                        Color = Color.LawnGreen, Radius = W.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (FiddleTheTrollMeNu.DrawingsE())
                {
                    new Circle {
                        Color = Color.LawnGreen, Radius = E.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (FiddleTheTrollMeNu.DrawingsR())
                {
                    new Circle {
                        Color = Color.LawnGreen, Radius = R.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                DamageIndicator.HealthbarEnabled =
                    FiddleTheTrollMeNu.DrawMeNu["healthbar"].Cast <CheckBox>().CurrentValue;
                DamageIndicator.PercentEnabled = FiddleTheTrollMeNu.DrawMeNu["percent"].Cast <CheckBox>().CurrentValue;
            }
        }
Esempio n. 3
0
        void OnHarrass()
        {
            var enemies = EntityManager.Heroes.Enemies.OrderByDescending
                              (a => a.HealthPercent).Where(a => !a.IsMe && a.IsValidTarget() && a.Distance(Player) <= E.Range);
            var target = TargetSelector.GetTarget(E.Range, DamageType.Physical);

            if (!target.IsValidTarget())
            {
                return;
            }

            if (E.IsReady() && target.IsValidTarget(E.Range))
            {
                foreach (var eenemies in enemies)
                {
                    var useE = FiddleTheTrollMeNu.HarassMeNu["harass.E"
                                                             + eenemies.ChampionName].Cast <CheckBox>().CurrentValue;
                    if (useE && Player.ManaPercent > FiddleTheTrollMeNu.HarassQe())
                    {
                        E.Cast(target);
                    }
                }
            }
        }