public override void Orbwalking_AfterAttack(AttackableUnit unit, AttackableUnit target) { if ((ComboActive || HarassActive) && (unit.IsValid || unit.IsMe) && (target is Obj_AI_Hero)) { var useW = GetValue <bool>("UseW" + (ComboActive ? "C" : "H")); if (useW && W.IsReady()) { JinxEvents.CastW(); } } }
public override void Game_OnGameUpdate(EventArgs args) { JinxEvents.ExecuteToggle(); JinxEvents.AlwaysChooseMiniGun(); if (E.IsReady()) { var t = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Physical); if (GetValue <bool>("AutoEI")) { JinxEvents.CastE(HitChance.Immobile); } if (GetValue <bool>("AutoED")) { JinxEvents.CastE(HitChance.Dashing); } if (GetValue <bool>("AutoES")) { if (JinxData.EnemyHasBuffForCastE) { JinxEvents.CastE(HitChance.High); } } } if (GetValue <bool>("UseRC") && R.IsReady()) { var maxRRange = GetValue <Slider>("MaxRRange").Value; var t = TargetSelector.GetTarget(maxRRange, TargetSelector.DamageType.Physical); var aaDamage = Orbwalking.InAutoAttackRange(t) ? ObjectManager.Player.GetAutoAttackDamage(t, true) * JinxData.GetPowPowStacks : 0; if (t.Health > aaDamage && t.Health <= ObjectManager.Player.GetSpellDamage(t, SpellSlot.R)) { if (t.IsValidTarget(maxRRange)) { R.Cast(t); } else { var xRKillNotice = String.Format( "Killable Target: {0}, Distance: {1}", t.ChampionName, JinxData.GetRealDistance(t)); Drawing.DrawText( Drawing.Width * 0.44f, Drawing.Height * 0.80f, System.Drawing.Color.Red, xRKillNotice); } } } if ((!ComboActive && !HarassActive) || !Orbwalking.CanMove(100)) { var useQ = GetValue <bool>("UseQ" + (ComboActive ? "C" : "H")); var useW = GetValue <bool>("UseW" + (ComboActive ? "C" : "H")); var useE = GetValue <bool>("UseE" + (ComboActive ? "C" : "H")); if (useQ && JinxData.JinxSpells.CanCastQ) { JinxEvents.CastQ(); } if (useW && JinxData.JinxSpells.CanCastW) { JinxEvents.CastW(); } if (useE && JinxData.JinxSpells.CanCastE) { JinxEvents.CastE(HitChance.High); } } }
public override void Game_OnGameUpdate(EventArgs args) { JinxEvents.ExecuteToggle(); JinxEvents.AlwaysChooseMiniGun(); if (E.IsReady()) { var t = TargetSelector.GetTarget(E.Range, TargetSelector.DamageType.Physical); if (!t.IsValidTarget()) { return; } if (GetValue <bool>("AutoEI")) { JinxEvents.CastE(HitChance.Immobile); } if (GetValue <bool>("AutoED")) { JinxEvents.CastE(HitChance.Dashing); } if (GetValue <bool>("AutoES") && JinxData.EnemyHasBuffForCastE) { JinxEvents.CastE(HitChance.High); } } if (R.IsReady() && Program.Config.SubMenu("Combo").Item("UserRC").GetValue <bool>()) { JinxEvents.CastR(); } if (ComboActive || HarassActive) { var useQ = Program.Config.SubMenu(ComboActive ? "Combo" : "Harass") .Item("UseQ" + (ComboActive ? "C" : "H")) .GetValue <bool>(); if (useQ) { JinxEvents.CastQ(); } var useW = Program.Config.SubMenu(ComboActive ? "Combo" : "Harass") .Item("UseW" + (ComboActive ? "C" : "H")) .GetValue <bool>(); if (useW) { JinxEvents.CastW(); } var useE = Program.Config.SubMenu(ComboActive ? "Combo" : "Harass") .Item("UseE" + (ComboActive ? "C" : "H")) .GetValue <bool>(); if (useE) { JinxEvents.CastE(HitChance.High); } } }