protected override void Orbwalking_BeforeAttack(SCommon.Orbwalking.BeforeAttackArgs args) { if (Orbwalker.ActiveMode == SCommon.Orbwalking.Orbwalker.Mode.Combo && args.Target is Obj_AI_Hero && ComboUseQ) { leapTarget = args.Target as Obj_AI_Hero; if (Spells[Q].IsReady()) { float dmg = 0f; if (HaveFullFerocity) { dmg = (float)ObjectManager.Player.CalcDamage(leapTarget, LeagueSharp.Common.Damage.DamageType.Physical, new int[] { 30, 45, 60, 75, 90, 105, 120, 135, 150, 160, 170, 180, 190, 200, 210, 220, 230, 240 }[ObjectManager.Player.Level - 1] +(ObjectManager.Player.BaseAttackDamage + ObjectManager.Player.FlatPhysicalDamageMod) * 0.5f); } else { dmg = (float)ObjectManager.Player.CalcDamage(leapTarget, LeagueSharp.Common.Damage.DamageType.Physical, new int[] { 30, 60, 90, 120, 150 }[ObjectManager.Player.GetSpell(SpellSlot.Q).Level - 1] +(ObjectManager.Player.BaseAttackDamage + ObjectManager.Player.FlatPhysicalDamageMod) * new int[] { 0, 5, 10, 15, 20 }[ObjectManager.Player.GetSpell(SpellSlot.Q).Level - 1] / 100f); } if (dmg >= leapTarget.Health || (WillLeap && OneShotComboActive)) { Spells[Q].Cast(); if (!WillLeap) { args.Process = false; } } } } }
protected override void OrbwalkingEvents_BeforeAttack(SCommon.Orbwalking.BeforeAttackArgs args) { if (Orbwalker.ActiveMode == SCommon.Orbwalking.Orbwalker.Mode.Combo && Spells[W].IsReady() && ComboUseW) { Spells[W].Cast(); args.Process = false; } }
protected override void OrbwalkingEvents_BeforeAttack(SCommon.Orbwalking.BeforeAttackArgs args) { if (!HasPassive && args.Target != null && args.Target is AIHeroClient && Orbwalker.ActiveMode == SCommon.Orbwalking.Orbwalker.Mode.Combo) { if (Spells[Q].IsReady() && ComboUseQ) { Spells[Q].CastOnUnit(args.Target as Obj_AI_Base); args.Process = false; } } }
protected override void OrbwalkingEvents_BeforeAttack(SCommon.Orbwalking.BeforeAttackArgs args) { if (DontAAStealth && ObjectManager.Player.HasBuff("vaynetumblefade")) { if (ObjectManager.Player.ServerPosition.CountEnemiesInRange(1000) > DontAAStealthCount) { if (args.Target is Obj_AI_Hero && args.Target.Health <= SCommon.Damage.AutoAttack.GetDamage(args.Target as Obj_AI_Base, true) * 2 && ObjectManager.Player.Health > (args.Target as Obj_AI_Hero).GetAutoAttackDamage(ObjectManager.Player, true)) //can killable { return; } args.Process = false; } } }
protected override void OrbwalkingEvents_BeforeAttack(SCommon.Orbwalking.BeforeAttackArgs args) { if (Orbwalker.ActiveMode == SCommon.Orbwalking.Orbwalker.Mode.Combo && args.Target is AIHeroClient && ComboUseQ) { leapTarget = args.Target as AIHeroClient; if (Utils.TickCount - lastLeap < 100 && !HaveFullFerocity) { if (Spells[Q].IsReady()) { Spells[Q].Cast(true); } else { args.Process = false; } lastLeap = 0; } if (Spells[Q].IsReady() || HaveFullFerocity) { float dmg = 0f; if (HaveFullFerocity) { dmg = (float)ObjectManager.Player.CalcDamage(leapTarget, LeagueSharp.Common.Damage.DamageType.Physical, new int[] { 30, 45, 60, 75, 90, 105, 120, 135, 150, 160, 170, 180, 190, 200, 210, 220, 230, 240 }[ObjectManager.Player.Level - 1] +(ObjectManager.Player.BaseAttackDamage + ObjectManager.Player.FlatPhysicalDamageMod) * 0.5f); } else { dmg = (float)ObjectManager.Player.CalcDamage(leapTarget, LeagueSharp.Common.Damage.DamageType.Physical, new int[] { 30, 60, 90, 120, 150 }[Spells[Q].Level - 1] +(ObjectManager.Player.BaseAttackDamage + ObjectManager.Player.FlatPhysicalDamageMod) * new int[] { 0, 5, 10, 15, 20 }[ObjectManager.Player.GetSpell(SpellSlot.Q).Level - 1] / 100f); } if (dmg >= leapTarget.Health || (WillLeap && OneShotComboActive)) { Spells[Q].Cast(true); if (!WillLeap) { args.Process = false; } } } if (ObjectManager.Player.HasBuff("RengarR")) { Orbwalker.Configuration.DontMoveInRange = true; } } }