public static void ImprovedCombo() { Champion.SetIgniteSlot(GlobalManager.GetHero.GetSpellSlot("summonerdot")); var bSpells = new bool[5]; bSpells[0] = GlobalManager.Config.Item("useQ").GetValue <bool>(); bSpells[1] = GlobalManager.Config.Item("useE").GetValue <bool>(); bSpells[2] = GlobalManager.Config.Item("useW").GetValue <bool>(); bSpells[3] = GlobalManager.Config.Item("useR").GetValue <bool>(); bSpells[4] = GlobalManager.Config.Item("useRww").GetValue <bool>(); var target = TargetSelector.GetTarget(Champion.W.Range, TargetSelector.DamageType.Magical); if (target.IsValidTarget(Champion.W.Range) && (target.Health < Champion.IgniteDamage(target) + Champion.W.GetDamage(target))) { GlobalManager.GetHero.Spellbook.CastSpell(Champion.GetIgniteSlot(), target); } if (GlobalManager.GetHero.HasBuff("ryzepassivecharged")) { Console.WriteLine("Using Ryze Combo Sequence 4"); StartComboSequence(target, bSpells, new[] { 'Q', 'W', 'Q', 'E', 'Q', 'R' }); } else { switch (GlobalManager.GetPassiveBuff) { case 1: case 2: Console.WriteLine("Using Ryze Combo Sequence 1"); StartComboSequence(target, bSpells, new[] { 'Q', 'W', 'E', 'R' }); break; case 3: Console.WriteLine("Using Ryze Combo Sequence 2"); StartComboSequence(target, bSpells, new[] { 'Q', 'E', 'W', 'R' }); break; case 4: Console.WriteLine("Using Ryze Combo Sequence 3"); StartComboSequence(target, bSpells, new[] { 'W', 'Q', 'E', 'R' }); break; default: // 0 Console.WriteLine("Using Ryze Combo Sequence default"); StartComboSequence(target, bSpells, new[] { 'W', 'Q', 'E' }); break; } } }
void ImprovedCombo() { Champion.SetIgniteSlot(GlobalManager.GetHero.GetSpellSlot("summonerdot")); var target = TargetSelector.GetTarget(Champion.W.Range, DamageType.Magical); if (!target.LSIsValidTarget(Champion.Q.Range) || !GlobalManager.CheckTarget(target)) { return; } if (target.LSIsValidTarget(Champion.W.Range) && (target.Health < Champion.IgniteDamage(target) + Champion.W.GetDamage(target))) { GlobalManager.GetHero.Spellbook.CastSpell(Champion.GetIgniteSlot(), target); } var bSpells = new bool[5]; var qSpell = getCheckBoxItem(MenuManager.combo1Menu, "useQ"); var eSpell = getCheckBoxItem(MenuManager.combo1Menu, "useE"); var wSpell = getCheckBoxItem(MenuManager.combo1Menu, "useW"); var rSpell = getCheckBoxItem(MenuManager.combo1Menu, "useR"); var rwwSpell = getCheckBoxItem(MenuManager.combo1Menu, "useRww"); if (target.LSIsValidTarget(Champion.Q.Range)) { if (Champion.R.IsReady()) { if (GlobalManager.GetPassiveBuff < 1 && !GlobalManager.GetHero.HasBuff("ryzepassivecharged")) { CastQn(target); CastE(target); CastW(target); CastR(target); } if (GlobalManager.GetPassiveBuff == 1) { CastR(target); CastE(target); CastQn(target); CastW(target); CastQn(target); CastE(target); CastQn(target); CastW(target); } if (GlobalManager.GetPassiveBuff == 2) { CastR(target); CastE(target); CastQn(target); CastW(target); CastQn(target); CastE(target); CastQn(target); CastW(target); } if (GlobalManager.GetPassiveBuff == 3) { if (Champion.Q.IsReady()) { CastQn(target); CastW(target); CastQn(target); CastE(target); CastQn(target); CastW(target); CastQn(target); CastE(target); } else { CastR(target); CastW(target); CastQn(target); CastE(target); CastQn(target); CastW(target); CastQn(target); CastE(target); } } if (GlobalManager.GetPassiveBuff == 4) { CastW(target); CastQn(target); CastE(target); CastQn(target); CastW(target); CastQn(target); CastE(target); } } else { if (GlobalManager.GetPassiveBuff <= 2 && !GlobalManager.GetHero.HasBuff("ryzepassivecharged")) { CastE(target); CastQn(target); CastW(target); CastQn(target); CastE(target); CastQn(target); CastW(target); CastQn(target); CastE(target); } if (GlobalManager.GetPassiveBuff == 3) { CastQn(target); CastW(target); CastQn(target); CastE(target); CastQ(target); CastW(target); CastQn(target); CastE(target); } if (GlobalManager.GetPassiveBuff == 4) { CastW(target); CastQn(target); CastE(target); CastQn(target); CastW(target); CastQn(target); CastE(target); } } if (GlobalManager.GetHero.HasBuff("ryzepassivecharged")) { CastW(target); CastQn(target); CastE(target); } } if (Champion.R.IsReady() && (GlobalManager.GetPassiveBuff == 4 || GlobalManager.GetHero.HasBuff("ryzepassivecharged")) && rSpell) { if (!Champion.Q.IsReady() && !Champion.W.IsReady() && !Champion.E.IsReady()) { Champion.R.Cast(); } } }
// ReSharper disable once FunctionComplexityOverflow public static void ImprovedCombo() { Champion.SetIgniteSlot(GlobalManager.GetHero.GetSpellSlot("summonerdot")); var target = TargetSelector.GetTarget(Champion.W.Range, TargetSelector.DamageType.Magical); if (!target.IsValidTarget(Champion.Q.Range) || !GlobalManager.CheckTarget(target)) { return; } if (target.IsValidTarget(Champion.W.Range) && (target.Health < Champion.IgniteDamage(target) + Champion.W.GetDamage(target))) { GlobalManager.GetHero.Spellbook.CastSpell(Champion.GetIgniteSlot(), target); } var bSpells = new bool[5]; switch (GlobalManager.Config.Item("combooptions").GetValue <StringList>().SelectedIndex) { #region Wombo Combo case 0: var qSpell = GlobalManager.Config.Item("useQ").GetValue <bool>(); var eSpell = GlobalManager.Config.Item("useE").GetValue <bool>(); var wSpell = GlobalManager.Config.Item("useW").GetValue <bool>(); var rSpell = GlobalManager.Config.Item("useR").GetValue <bool>(); var rwwSpell = GlobalManager.Config.Item("useRww").GetValue <bool>(); if (target.IsValidTarget(Champion.Q.Range)) { if (GlobalManager.GetPassiveBuff <= 2 || !GlobalManager.GetHero.HasBuff("RyzePassiveStack")) { if (target.IsValidTarget(Champion.Q.Range) && qSpell && Champion.Q.IsReady()) { Champion.Q.Cast(target); } if (target.IsValidTarget(Champion.W.Range) && wSpell && Champion.W.IsReady()) { Champion.W.CastOnUnit(target); } if (target.IsValidTarget(Champion.E.Range) && eSpell && Champion.E.IsReady()) { Champion.E.CastOnUnit(target); } if (Champion.R.IsReady() && rSpell) { if (target.IsValidTarget(Champion.W.Range) && target.Health > (Champion.Q.GetDamage(target) + Champion.E.GetDamage(target))) { if (rwwSpell && target.HasBuff("RyzeW")) { Champion.R.Cast(); } if (!rwwSpell) { Champion.R.Cast(); } } } } if (GlobalManager.GetPassiveBuff == 3) { if (Champion.Q.IsReady() && target.IsValidTarget(Champion.Q.Range)) { Champion.Qn.Cast(target); } if (Champion.E.IsReady() && target.IsValidTarget(Champion.E.Range)) { Champion.E.CastOnUnit(target); } if (Champion.W.IsReady() && target.IsValidTarget(Champion.W.Range)) { Champion.W.CastOnUnit(target); } if (Champion.R.IsReady() && rSpell) { if (target.IsValidTarget(Champion.W.Range) && target.Health > (Champion.Q.GetDamage(target) + Champion.E.GetDamage(target))) { if (rwwSpell && target.HasBuff("RyzeW")) { Champion.R.Cast(); } if (!rwwSpell) { Champion.R.Cast(); } } } } if (GlobalManager.GetPassiveBuff == 4) { if (target.IsValidTarget(Champion.W.Range) && wSpell && Champion.W.IsReady()) { Champion.W.CastOnUnit(target); } if (target.IsValidTarget(Champion.Qn.Range) && Champion.Q.IsReady() && qSpell) { Champion.Qn.Cast(target); } if (target.IsValidTarget(Champion.E.Range) && Champion.E.IsReady() && eSpell) { Champion.E.CastOnUnit(target); } if (Champion.R.IsReady() && rSpell) { if (target.IsValidTarget(Champion.W.Range) && target.Health > (Champion.Q.GetDamage(target) + Champion.E.GetDamage(target))) { if (rwwSpell && target.HasBuff("RyzeW")) { Champion.R.Cast(); } if (!rwwSpell) { Champion.R.Cast(); } } } } if (GlobalManager.GetHero.HasBuff("ryzepassivecharged")) { if (wSpell && Champion.W.IsReady() && target.IsValidTarget(Champion.W.Range)) { Champion.W.CastOnUnit(target); } if (qSpell && Champion.Qn.IsReady() && target.IsValidTarget(Champion.Qn.Range)) { Champion.Qn.Cast(target); } if (eSpell && Champion.E.IsReady() && target.IsValidTarget(Champion.E.Range)) { Champion.E.CastOnUnit(target); } if (Champion.R.IsReady() && rSpell) { if (target.IsValidTarget(Champion.W.Range) && target.Health > (Champion.Q.GetDamage(target) + Champion.E.GetDamage(target))) { if (rwwSpell && target.HasBuff("RyzeW")) { Champion.R.Cast(); } if (!rwwSpell) { Champion.R.Cast(); } if (!Champion.E.IsReady() && !Champion.Q.IsReady() && !Champion.W.IsReady()) { Champion.R.Cast(); } } } } } else { if (wSpell && Champion.W.IsReady() && target.IsValidTarget(Champion.W.Range)) { Champion.W.CastOnUnit(target); } if (qSpell && Champion.Qn.IsReady() && target.IsValidTarget(Champion.Qn.Range)) { Champion.Qn.Cast(target); } if (eSpell && Champion.E.IsReady() && target.IsValidTarget(Champion.E.Range)) { Champion.E.CastOnUnit(target); } } if (!Champion.R.IsReady() || GlobalManager.GetPassiveBuff != 4 || !rSpell) { return; } if (Champion.Q.IsReady() || Champion.W.IsReady() || Champion.E.IsReady()) { return; } Champion.R.Cast(); break; #endregion } }
// ReSharper disable once FunctionComplexityOverflow public static void ImprovedCombo() { Champion.SetIgniteSlot(GlobalManager.GetHero.GetSpellSlot("summonerdot")); var target = TargetSelector.GetTarget(Champion.W.Range, TargetSelector.DamageType.Magical); if (!target.IsValidTarget(Champion.Q.Range) || !GlobalManager.CheckTarget(target)) { return; } if (target.IsValidTarget(Champion.W.Range) && (target.Health < Champion.IgniteDamage(target) + Champion.W.GetDamage(target))) { GlobalManager.GetHero.Spellbook.CastSpell(Champion.GetIgniteSlot(), target); } var bSpells = new bool[5]; switch (GlobalManager.Config.Item("combooptions").GetValue <StringList>().SelectedIndex) { #region No Delay Combo? case 2: bSpells[0] = GlobalManager.Config.Item("useQ").GetValue <bool>(); bSpells[1] = GlobalManager.Config.Item("useE").GetValue <bool>(); bSpells[2] = GlobalManager.Config.Item("useW").GetValue <bool>(); bSpells[3] = GlobalManager.Config.Item("useR").GetValue <bool>(); bSpells[4] = GlobalManager.Config.Item("useRww").GetValue <bool>(); if (target.IsValidTarget(Champion.W.Range) && (target.Health < Champion.IgniteDamage(target) + Champion.W.GetDamage(target))) { GlobalManager.GetHero.Spellbook.CastSpell(Champion.GetIgniteSlot(), target); } if (GlobalManager.GetHero.HasBuff("ryzepassivecharged")) { Console.WriteLine(@"Using Ryze Combo Sequence 4"); StartComboSequence(target, bSpells, new[] { 'W', 'Q', 'E', 'Q', 'W', 'Q', 'E', 'Q', 'W', 'Q', 'E', 'Q', 'W' }); } else if (Champion.R.IsReady()) { switch (GlobalManager.GetPassiveBuff) { case 1: case 2: Console.WriteLine(@"Using Ryze Combo Sequence 1"); StartComboSequence(target, bSpells, new[] { 'W', 'Q', 'E', 'R', 'Q', 'E', 'Q', 'W', 'Q', 'E', 'Q', 'W', 'Q', 'E', 'Q', 'W' }); break; case 3: Console.WriteLine(@"Using Ryze Combo Sequence 2"); StartComboSequence(target, bSpells, new[] { 'Q', 'W', 'R', 'Q', 'E', 'Q', 'W', 'Q', 'E', 'Q', 'W', 'Q', 'E', 'Q', 'W' }); break; case 4: Console.WriteLine(@"Using Ryze Combo Sequence 3"); StartComboSequence(target, bSpells, new[] { 'W', 'R', 'Q', 'E', 'Q', 'W', 'Q', 'E', 'Q', 'W', 'Q', 'E', 'Q', 'W' }); break; default: // 0 Console.WriteLine(@"Using Ryze Combo Sequence default"); StartComboSequence(target, bSpells, new[] { 'W', 'Q', 'E' }); break; } } else { switch (GlobalManager.GetPassiveBuff) { case 2: Console.WriteLine(@"Using Ryze Combo Sequence 1"); StartComboSequence(target, bSpells, new[] { 'Q', 'E', 'Q', 'W', 'Q', 'E', 'Q', 'W', 'Q', 'E', 'Q', 'W' }); break; case 3: Console.WriteLine(@"Using Ryze Combo Sequence 2"); StartComboSequence(target, bSpells, new[] { 'Q', 'W', 'Q', 'E', 'Q', 'W', 'Q', 'E', 'Q', 'W', 'Q', 'E', 'Q', 'W' }); break; case 4: Console.WriteLine(@"Using Ryze Combo Sequence 3"); StartComboSequence(target, bSpells, new[] { 'W', 'Q', 'E', 'Q', 'W', 'Q', 'E', 'Q', 'W', 'Q', 'E', 'Q', 'W' }); break; default: // 0 and 1 Console.WriteLine(@"Using Ryze Combo Sequence default"); StartComboSequence(target, bSpells, new[] { 'W', 'Q', 'E' }); break; } } break; #endregion #region Human Combo case 1: bSpells[0] = GlobalManager.Config.Item("useQ").GetValue <bool>(); bSpells[1] = GlobalManager.Config.Item("useE").GetValue <bool>(); bSpells[2] = GlobalManager.Config.Item("useW").GetValue <bool>(); bSpells[3] = GlobalManager.Config.Item("useR").GetValue <bool>(); bSpells[4] = GlobalManager.Config.Item("useRww").GetValue <bool>(); if (target.IsValidTarget(Champion.W.Range) && (target.Health < Champion.IgniteDamage(target) + Champion.W.GetDamage(target))) { GlobalManager.GetHero.Spellbook.CastSpell(Champion.GetIgniteSlot(), target); } if (GlobalManager.GetHero.HasBuff("ryzepassivecharged")) { Console.WriteLine(@"Using Ryze Combo Sequence 4"); StartComboSequence(target, bSpells, new[] { 'Q', 'W', 'Q', 'E', 'Q', 'R' }); } else { switch (GlobalManager.GetPassiveBuff) { case 1: case 2: Console.WriteLine(@"Using Ryze Combo Sequence 1"); StartComboSequence(target, bSpells, new[] { 'Q', 'W', 'E', 'R' }); break; case 3: Console.WriteLine(@"Using Ryze Combo Sequence 2"); StartComboSequence(target, bSpells, new[] { 'Q', 'E', 'W', 'R' }); break; case 4: Console.WriteLine(@"Using Ryze Combo Sequence 3"); StartComboSequence(target, bSpells, new[] { 'W', 'Q', 'E', 'R' }); break; default: // 0 Console.WriteLine(@"Using Ryze Combo Sequence default"); StartComboSequence(target, bSpells, new[] { 'W', 'Q', 'E' }); break; } } break; #endregion #region Beta Combo? //case 1: // if (Champion.R.IsReady()) // { // if (GlobalManager.GetPassiveBuff == 1 || !GlobalManager.GetHero.HasBuff("RyzePassiveStack")) // { // if (target.IsValidTarget(Champion.Q.Range) // && qSpell // && Champion.Q.IsReady()) // Champion.Q.Cast(target); // if (target.IsValidTarget(Champion.W.Range) // && wSpell // && Champion.W.IsReady()) // Champion.W.CastOnUnit(target); // if (target.IsValidTarget(Champion.E.Range) // && eSpell // && Champion.E.IsReady()) // Champion.E.CastOnUnit(target); // if (rSpell) // { // if (target.IsValidTarget(Champion.W.Range) // && target.Health > (Champion.Q.GetDamage(target) + Champion.E.GetDamage(target))) // { // if (rwwSpell && target.HasBuff("RyzeW")) // Champion.R.Cast(); // if (!rwwSpell) // Champion.R.Cast(); // } // } // } // if (GlobalManager.GetPassiveBuff == 2) // { // if (target.IsValidTarget(Champion.Q.Range) // && qSpell // && Champion.Q.IsReady()) // Champion.Q.Cast(target); // if (target.IsValidTarget(Champion.W.Range) // && wSpell // && Champion.W.IsReady()) // Champion.W.CastOnUnit(target); // if (target.IsValidTarget(Champion.E.Range) // && eSpell // && Champion.E.IsReady()) // Champion.E.CastOnUnit(target); // if (rSpell) // { // if (target.IsValidTarget(Champion.W.Range) // && target.Health > (Champion.Q.GetDamage(target) + Champion.E.GetDamage(target))) // if (target.HasBuff("RyzeW")) // Champion.R.Cast(); // } // } // if (GlobalManager.GetPassiveBuff == 3) // { // if (Champion.Q.IsReady() // && target.IsValidTarget(Champion.Q.Range)) // Champion.Qn.Cast(target); // if (Champion.E.IsReady() // && target.IsValidTarget(Champion.E.Range)) // Champion.E.CastOnUnit(target); // if (Champion.W.IsReady() // && target.IsValidTarget(Champion.W.Range)) // Champion.W.CastOnUnit(target); // if (Champion.R.IsReady() // && rSpell) // { // if (target.IsValidTarget(Champion.W.Range) // && target.Health > (Champion.Q.GetDamage(target) + Champion.E.GetDamage(target))) // { // if (rwwSpell && target.HasBuff("RyzeW") // && (Champion.Q.IsReady() || Champion.W.IsReady() || Champion.E.IsReady())) // Champion.R.Cast(); // if (!rwwSpell // && (Champion.Q.IsReady() || Champion.W.IsReady() || Champion.E.IsReady())) // Champion.R.Cast(); // } // } // } // if (GlobalManager.GetPassiveBuff == 4) // { // if (target.IsValidTarget(Champion.W.Range) // && wSpell // && Champion.W.IsReady()) // Champion.W.CastOnUnit(target); // if (target.IsValidTarget(Champion.Qn.Range) // && Champion.Q.IsReady() // && qSpell) // Champion.Qn.Cast(target); // if (target.IsValidTarget(Champion.E.Range) // && Champion.E.IsReady() // && eSpell) // Champion.E.CastOnUnit(target); // if (Champion.R.IsReady() // && rSpell) // { // if (target.IsValidTarget(Champion.W.Range) // && target.Health > (Champion.Q.GetDamage(target) + Champion.E.GetDamage(target))) // { // if (rwwSpell && target.HasBuff("RyzeW")) // Champion.R.Cast(); // if (!rwwSpell) // Champion.R.Cast(); // if (!Champion.Q.IsReady() && !Champion.W.IsReady() && !Champion.E.IsReady()) // Champion.R.Cast(); // } // } // } // if (GlobalManager.GetHero.HasBuff("ryzepassivecharged")) // { // if (qSpell // && Champion.Qn.IsReady() // && target.IsValidTarget(Champion.Qn.Range)) // Champion.Qn.Cast(target); // if (wSpell // && Champion.W.IsReady() // && target.IsValidTarget(Champion.W.Range)) // Champion.W.CastOnUnit(target); // if (qSpell // && Champion.Qn.IsReady() // && target.IsValidTarget(Champion.Qn.Range)) // Champion.Qn.Cast(target); // if (eSpell // && Champion.E.IsReady() // && target.IsValidTarget(Champion.E.Range)) // Champion.E.CastOnUnit(target); // if (qSpell // && Champion.Qn.IsReady() // && target.IsValidTarget(Champion.Qn.Range)) // Champion.Qn.Cast(target); // if (Champion.R.IsReady() // && rSpell) // { // if (target.IsValidTarget(Champion.W.Range) // && target.Health > (Champion.Q.GetDamage(target) + Champion.E.GetDamage(target))) // { // if (rwwSpell && target.HasBuff("RyzeW")) // Champion.R.Cast(); // if (!rwwSpell) // Champion.R.Cast(); // if (!Champion.E.IsReady() && !Champion.Q.IsReady() && !Champion.W.IsReady()) // Champion.R.Cast(); // } // } // } // } // if (!Champion.R.IsReady()) // { // if (GlobalManager.GetPassiveBuff == 1 // || !GlobalManager.GetHero.HasBuff("RyzePassiveStack")) // { // if (target.IsValidTarget(Champion.W.Range) // && wSpell // && Champion.W.IsReady()) // Champion.W.CastOnUnit(target); // if (target.IsValidTarget(Champion.W.Range) // && wSpell // && Champion.W.IsReady()) // Champion.W.CastOnUnit(target); // if (target.IsValidTarget(Champion.E.Range) // && eSpell // && Champion.E.IsReady()) // Champion.E.CastOnUnit(target); // } // if (GlobalManager.GetPassiveBuff == 2) // { // if (target.IsValidTarget(Champion.Q.Range) // && qSpell // && Champion.Q.IsReady()) // Champion.Q.Cast(target); // if (target.IsValidTarget(Champion.E.Range) // && eSpell // && Champion.E.IsReady()) // Champion.E.CastOnUnit(target); // if (target.IsValidTarget(Champion.W.Range) // && wSpell // && Champion.W.IsReady()) // Champion.W.CastOnUnit(target); // if (rSpell) // { // if (target.IsValidTarget(Champion.W.Range) // && target.Health > (Champion.Q.GetDamage(target) + Champion.E.GetDamage(target))) // { // if (rwwSpell && target.HasBuff("RyzeW")) // Champion.R.Cast(); // if (!rwwSpell) // Champion.R.Cast(); // } // } // } // if (GlobalManager.GetPassiveBuff == 3) // { // if (Champion.Q.IsReady() // && target.IsValidTarget(Champion.Q.Range)) // Champion.Qn.Cast(target); // if (Champion.E.IsReady() // && target.IsValidTarget(Champion.E.Range)) // Champion.E.CastOnUnit(target); // if (Champion.W.IsReady() // && target.IsValidTarget(Champion.W.Range)) // Champion.W.CastOnUnit(target); // } // if (GlobalManager.GetPassiveBuff == 4) // { // if (target.IsValidTarget(Champion.E.Range) // && Champion.E.IsReady() // && eSpell) // Champion.E.CastOnUnit(target); // if (target.IsValidTarget(Champion.W.Range) // && wSpell // && Champion.W.IsReady()) // Champion.W.CastOnUnit(target); // if (target.IsValidTarget(Champion.Qn.Range) // && Champion.Q.IsReady() // && qSpell) // Champion.Qn.Cast(target); // } // if (GlobalManager.GetHero.HasBuff("ryzepassivecharged")) // { // if (qSpell // && Champion.Qn.IsReady() // && target.IsValidTarget(Champion.Qn.Range)) // Champion.Qn.Cast(target); // if (wSpell // && Champion.W.IsReady() // && target.IsValidTarget(Champion.W.Range)) // Champion.W.CastOnUnit(target); // if (qSpell // && Champion.Qn.IsReady() // && target.IsValidTarget(Champion.Qn.Range)) // Champion.Qn.Cast(target); // if (eSpell // && Champion.E.IsReady() // && target.IsValidTarget(Champion.E.Range)) // Champion.E.CastOnUnit(target); // if (qSpell // && Champion.Qn.IsReady() // && target.IsValidTarget(Champion.Qn.Range)) // Champion.Qn.Cast(target); // } // } // break; #endregion #region Wombo Combo case 0: var qSpell = GlobalManager.Config.Item("useQ").GetValue <bool>(); var eSpell = GlobalManager.Config.Item("useE").GetValue <bool>(); var wSpell = GlobalManager.Config.Item("useW").GetValue <bool>(); var rSpell = GlobalManager.Config.Item("useR").GetValue <bool>(); var rwwSpell = GlobalManager.Config.Item("useRww").GetValue <bool>(); if (target.IsValidTarget(Champion.Q.Range)) { if (GlobalManager.GetPassiveBuff <= 2 || !GlobalManager.GetHero.HasBuff("RyzePassiveStack")) { if (target.IsValidTarget(Champion.Q.Range) && qSpell && Champion.Q.IsReady()) { Champion.Q.Cast(target); } if (target.IsValidTarget(Champion.W.Range) && wSpell && Champion.W.IsReady()) { Champion.W.CastOnUnit(target); } if (target.IsValidTarget(Champion.E.Range) && eSpell && Champion.E.IsReady()) { Champion.E.CastOnUnit(target); } if (Champion.R.IsReady() && rSpell) { if (target.IsValidTarget(Champion.W.Range) && target.Health > (Champion.Q.GetDamage(target) + Champion.E.GetDamage(target))) { if (rwwSpell && target.HasBuff("RyzeW")) { Champion.R.Cast(); } if (!rwwSpell) { Champion.R.Cast(); } } } } if (GlobalManager.GetPassiveBuff == 3) { if (Champion.Q.IsReady() && target.IsValidTarget(Champion.Q.Range)) { Champion.Qn.Cast(target); } if (Champion.E.IsReady() && target.IsValidTarget(Champion.E.Range)) { Champion.E.CastOnUnit(target); } if (Champion.W.IsReady() && target.IsValidTarget(Champion.W.Range)) { Champion.W.CastOnUnit(target); } if (Champion.R.IsReady() && rSpell) { if (target.IsValidTarget(Champion.W.Range) && target.Health > (Champion.Q.GetDamage(target) + Champion.E.GetDamage(target))) { if (rwwSpell && target.HasBuff("RyzeW")) { Champion.R.Cast(); } if (!rwwSpell) { Champion.R.Cast(); } } } } if (GlobalManager.GetPassiveBuff == 4) { if (target.IsValidTarget(Champion.W.Range) && wSpell && Champion.W.IsReady()) { Champion.W.CastOnUnit(target); } if (target.IsValidTarget(Champion.Qn.Range) && Champion.Q.IsReady() && qSpell) { Champion.Qn.Cast(target); } if (target.IsValidTarget(Champion.E.Range) && Champion.E.IsReady() && eSpell) { Champion.E.CastOnUnit(target); } if (Champion.R.IsReady() && rSpell) { if (target.IsValidTarget(Champion.W.Range) && target.Health > (Champion.Q.GetDamage(target) + Champion.E.GetDamage(target))) { if (rwwSpell && target.HasBuff("RyzeW")) { Champion.R.Cast(); } if (!rwwSpell) { Champion.R.Cast(); } } } } if (GlobalManager.GetHero.HasBuff("ryzepassivecharged")) { if (wSpell && Champion.W.IsReady() && target.IsValidTarget(Champion.W.Range)) { Champion.W.CastOnUnit(target); } if (qSpell && Champion.Qn.IsReady() && target.IsValidTarget(Champion.Qn.Range)) { Champion.Qn.Cast(target); } if (eSpell && Champion.E.IsReady() && target.IsValidTarget(Champion.E.Range)) { Champion.E.CastOnUnit(target); } if (Champion.R.IsReady() && rSpell) { if (target.IsValidTarget(Champion.W.Range) && target.Health > (Champion.Q.GetDamage(target) + Champion.E.GetDamage(target))) { if (rwwSpell && target.HasBuff("RyzeW")) { Champion.R.Cast(); } if (!rwwSpell) { Champion.R.Cast(); } if (!Champion.E.IsReady() && !Champion.Q.IsReady() && !Champion.W.IsReady()) { Champion.R.Cast(); } } } } } else { if (wSpell && Champion.W.IsReady() && target.IsValidTarget(Champion.W.Range)) { Champion.W.CastOnUnit(target); } if (qSpell && Champion.Qn.IsReady() && target.IsValidTarget(Champion.Qn.Range)) { Champion.Qn.Cast(target); } if (eSpell && Champion.E.IsReady() && target.IsValidTarget(Champion.E.Range)) { Champion.E.CastOnUnit(target); } } if (!Champion.R.IsReady() || GlobalManager.GetPassiveBuff != 4 || !rSpell) { return; } if (Champion.Q.IsReady() || Champion.W.IsReady() || Champion.E.IsReady()) { return; } Champion.R.Cast(); break; #endregion } }
public static void ImprovedCombo() { Champion.SetIgniteSlot(GlobalManager.GetHero.GetSpellSlot("summonerdot")); var target = TargetSelector.GetTarget(Champion.W.Range, TargetSelector.DamageType.Magical); if (!target.IsValidTarget(Champion.Q.Range) || !GlobalManager.CheckTarget(target)) { return; } if (target.IsValidTarget(Champion.W.Range) && (target.Health < Champion.IgniteDamage(target) + Champion.W.GetDamage(target))) { GlobalManager.GetHero.Spellbook.CastSpell(Champion.GetIgniteSlot(), target); } var bSpells = new bool[5]; var qSpell = GlobalManager.Config.Item("useQ").GetValue <bool>(); var eSpell = GlobalManager.Config.Item("useE").GetValue <bool>(); var wSpell = GlobalManager.Config.Item("useW").GetValue <bool>(); var rSpell = GlobalManager.Config.Item("useR").GetValue <bool>(); var rwwSpell = GlobalManager.Config.Item("useRww").GetValue <bool>(); if (target.IsValidTarget(Champion.Q.Range)) { if (GlobalManager.GetPassiveBuff <= 1 && !GlobalManager.GetHero.HasBuff("ryzepassivecharged")) { CastQ(target); CastE(target); CastW(target); CastR(target); } if (GlobalManager.GetPassiveBuff == 2) { CastQn(target); CastW(target); CastE(target); CastR(target); } if (GlobalManager.GetPassiveBuff == 3) { CastQn(target); CastE(target); CastW(target); CastR(target); } if (GlobalManager.GetPassiveBuff == 4) { CastW(target); CastQn(target); CastE(target); CastR(target); } if (GlobalManager.GetHero.HasBuff("ryzepassivecharged")) { CastW(target); CastQn(target); CastE(target); CastR(target); } } else { if (wSpell && Champion.W.IsReady() && target.IsValidTarget(Champion.W.Range)) { Champion.W.CastOnUnit(target); } if (qSpell && Champion.Qn.IsReady() && target.IsValidTarget(Champion.Qn.Range)) { Champion.Qn.Cast(target); } if (eSpell && Champion.E.IsReady() && target.IsValidTarget(Champion.E.Range)) { Champion.E.CastOnUnit(target); } } if (Champion.R.IsReady() && (GlobalManager.GetPassiveBuff == 4 || GlobalManager.GetHero.HasBuff("ryzepassivecharged")) && rSpell) { if (!Champion.Q.IsReady() && !Champion.W.IsReady() && !Champion.E.IsReady()) { Champion.R.Cast(); } } }