private static float ComboDamage(Obj_AI_Base hero) { var dmg = 0d; if (ObjectManager.Player.GetSpellSlot("SummonerIgnite") != SpellSlot.Unknown) { dmg += Player.GetSummonerSpellDamage(hero, Damage.SummonerSpell.Ignite); } if (Items.HasItem(3153) && Items.CanUseItem(3153)) { dmg += Player.GetItemDamage(hero, Damage.DamageItems.Botrk); } if (Items.HasItem(3144) && Items.CanUseItem(3144)) { dmg += Player.GetItemDamage(hero, Damage.DamageItems.Bilgewater); } if (QC.IsReady()) { dmg += Player.GetSpellDamage(hero, SpellSlot.Q); } if (EC.IsReady()) { dmg += Player.GetSpellDamage(hero, SpellSlot.E); } if (WC.IsReady()) { dmg += Player.GetSpellDamage(hero, SpellSlot.W); } if (Q.IsReady() && !IsCougar) { dmg += Player.GetSpellDamage(hero, SpellSlot.Q); } return((float)dmg); }
private static void Farm() { var target = SimpleTs.GetTarget(QC.Range, SimpleTs.DamageType.Magical); var allminions = MinionManager.GetMinions(Player.ServerPosition, Q.Range, MinionTypes.All, MinionTeam.Enemy, MinionOrderTypes.Health); if (Config.Item("UseQLane").GetValue <bool>()) { if (IsHuman) { R.Cast(); } foreach (var minion in allminions) { if (QC.IsReady() && minion.IsValidTarget() && Player.Distance(minion) <= QC.Range) { QC.Cast(minion); } if (WC.IsReady() && minion.IsValidTarget() && Player.Distance(minion) <= WC.Range) { WC.Cast(minion); } if (EC.IsReady() && minion.IsValidTarget() && Player.Distance(minion) <= EC.Range) { EC.Cast(minion); } } } }
private static void Farm() { foreach ( Obj_AI_Minion Minion in ObjectManager.Get<Obj_AI_Minion>() .Where( minion => minion.Team != Player.Team && !minion.IsDead && Vector2.Distance(minion.ServerPosition.To2D(), Player.ServerPosition.To2D()) < 600f) .OrderBy(minion => Vector2.Distance(minion.Position.To2D(), Player.Position.To2D()))) { if (IsCougar) { if (QC.IsReady() && Config.Item("UseQLane").GetValue<bool>() && Player.Distance(Minion) < QC.Range) QC.Cast(); else if (WC.IsReady() && Config.Item("UseWLane").GetValue<bool>() && Player.Distance(Minion) > 200f) WC.Cast(Minion); else if (EC.IsReady() && Config.Item("UseELane").GetValue<bool>() && Player.Distance(Minion) < EC.Range) EC.Cast(Minion); } else if (R.IsReady() && Config.Item("farm_R").GetValue<KeyBind>().Active) R.Cast(); else if (E.IsReady() && !Config.Item("farm_R").GetValue<KeyBind>().Active && Config.Item("farm_E1").GetValue<bool>() && (100*(Player.Mana/Player.MaxMana)) > Config.Item("Lane").GetValue<Slider>().Value) E.CastOnUnit(Player); return; } }
private static void Combo() { var target = TargetSelector.GetTarget(Q.Range, TargetSelector.DamageType.Magical); Orbwalker.SetAttack((!Q.IsReady() || W.IsReady())); var itemsDfg = Config.Item("UseItemsdfg").GetValue <bool>(); var itemsIgnite = Config.Item("UseItemsignite").GetValue <bool>(); if (target != null) { if (_dfg.IsReady() && target.HasBuff("nidaleepassivehunted", true) && Player.Distance(target as AttackableUnit) <= _dfg.Range && itemsDfg && target.Health <= ComboDamage(target)) { _dfg.Cast(target); } if (itemsIgnite && IgniteSlot != SpellSlot.Unknown && Player.Spellbook.CanUseSpell(IgniteSlot) == SpellState.Ready) { if (ComboDamage(target) > target.Health) { Player.Spellbook.CastSpell(IgniteSlot, target); } } if (Q.IsReady() && IsHuman && Player.Distance(target) <= Q.Range && Config.Item("UseQCombo").GetValue <bool>()) { var prediction = Q.GetPrediction(target); if (prediction.Hitchance >= QHitChanceCombo()) { Q.Cast(prediction.CastPosition); } } if (W.IsReady() && IsHuman && Player.Distance(target) <= W.Range && Config.Item("UseWCombo").GetValue <bool>()) { W.Cast(target); } if (R.IsReady() && IsHuman && Config.Item("UseRCombo").GetValue <bool>() && Player.Distance(target) <= 625) { if (IsHuman) { R.Cast(); } if (IsCougar) { if (WC.IsReady() && Config.Item("UseWComboCougar").GetValue <bool>() && Player.Distance(target) <= WC.Range) { WC.Cast(target); } if (EC.IsReady() && Config.Item("UseEComboCougar").GetValue <bool>() && Player.Distance(target) <= EC.Range) { EC.Cast(target); } if (QC.IsReady() && Config.Item("UseQComboCougar").GetValue <bool>() && Player.Distance(target) <= QC.Range) { Orbwalker.SetAttack(true); QC.Cast(); } } } if (IsCougar && Player.Distance(target) < 625) { if (IsHuman && R.IsReady()) { R.Cast(); } if (IsCougar) { if (WC.IsReady() && Config.Item("UseWComboCougar").GetValue <bool>() && Player.Distance(target) <= WC.Range) { WC.Cast(target); } if (EC.IsReady() && Config.Item("UseEComboCougar").GetValue <bool>() && Player.Distance(target) <= EC.Range) { EC.Cast(target); } if (QC.IsReady() && Config.Item("UseQComboCougar").GetValue <bool>() && Player.Distance(target) <= QC.Range) { Orbwalker.SetAttack(true); QC.Cast(); } } } if (R.IsReady() && IsCougar && Config.Item("UseRCombo").GetValue <bool>() && Player.Distance(target) > WC.Range) { R.Cast(); } if (R.IsReady() && IsCougar && Player.Distance(target) > EC.Range && Config.Item("UseRCombo").GetValue <bool>()) { R.Cast(); } } UseItemes(target); }