public static void SluttyCombo() { if (Champion.HasBuff("RyzeR") && MenuManager.UltimateMode) { UltimateMode(GameObjectType.AIHeroClient); return; } var qtarget = TargetManager.GetChampionTarget(SpellManager.Q.Range, DamageType.Magical, false, true); var target = TargetManager.GetChampionTarget(SpellManager.W.Range, DamageType.Magical); if (target != null && qtarget != null) { var bcount = Champion.GetBuffCount("ryzepassivestack"); if (!Champion.HasBuff("ryzepassivecharged") && bcount > 0) { switch (bcount) { case 1: if (MenuManager.ComboUseQ) { SpellManager.CastQ(qtarget); } if (MenuManager.ComboUseE) { SpellManager.CastE(target); } if (MenuManager.ComboUseW) { SpellManager.CastW(target); } if (MenuManager.ComboUseR) { SpellManager.CastR(target); } break; case 2: if (MenuManager.ComboUseQ) { SpellManager.CastQ(qtarget); } if (MenuManager.ComboUseW) { SpellManager.CastW(target); } if (MenuManager.ComboUseE) { SpellManager.CastE(target); } if (MenuManager.ComboUseR) { SpellManager.CastR(target); } break; case 3: if (MenuManager.ComboUseQ) { SpellManager.CastQ(qtarget); } if (MenuManager.ComboUseE) { SpellManager.CastE(target); } if (MenuManager.ComboUseW) { SpellManager.CastW(target); } if (MenuManager.ComboUseR) { SpellManager.CastR(target); } break; case 4: if (MenuManager.ComboUseW) { SpellManager.CastW(target); } if (MenuManager.ComboUseQ) { SpellManager.CastQ(qtarget); } if (MenuManager.ComboUseE) { SpellManager.CastE(target); } if (MenuManager.ComboUseR) { SpellManager.CastR(target); } break; } } else { if (MenuManager.ComboUseW) { SpellManager.CastW(target); } if (MenuManager.ComboUseQ) { SpellManager.CastQ(qtarget); } if (MenuManager.ComboUseE) { SpellManager.CastE(target); } if (MenuManager.ComboUseR) { SpellManager.CastR(target); } } if (MenuManager.ComboUseR && (Champion.GetBuffCount("ryzepassivestack") == 4 || Champion.HasBuff("ryzepassivecharged")) && !SpellManager.Q.IsReady() && !SpellManager.W.IsReady() && !SpellManager.E.IsReady()) { SpellManager.CastR(target); } } }
public static void UltimateMode(GameObjectType type, bool isMonster = false) { switch (type) { case GameObjectType.AIHeroClient: { if (SpellManager.Q.IsReady()) { var target = TargetManager.GetChampionTarget(SpellManager.Q.Range, DamageType.Magical, false, true); if (target != null) { SpellManager.CastQ(target); } } if (SpellManager.W.IsReady()) { var target = TargetManager.GetChampionTarget(SpellManager.W.Range, DamageType.Magical); if (target != null) { SpellManager.CastW(target); } } if (SpellManager.E.IsReady()) { var target = TargetManager.GetChampionTarget(SpellManager.E.Range, DamageType.Magical); if (target != null) { SpellManager.CastE(target); } } break; } case GameObjectType.obj_AI_Minion: { if (isMonster) { if (SpellManager.Q.IsReady()) { var target = TargetManager.GetMinionTarget(SpellManager.Q.Range, DamageType.Magical, false, true, true); if (target != null) { SpellManager.CastQ(target); } } if (SpellManager.W.IsReady()) { var target = TargetManager.GetMinionTarget(SpellManager.W.Range, DamageType.Magical, false, true); if (target != null) { SpellManager.CastW(target); } } if (SpellManager.E.IsReady()) { var target = TargetManager.GetMinionTarget(SpellManager.E.Range, DamageType.Magical, false, true); if (target != null) { SpellManager.CastE(target); } } } else { if (SpellManager.Q.IsReady()) { var target = TargetManager.GetMinionTarget(SpellManager.Q.Range, DamageType.Magical, false, false, true); if (target != null) { SpellManager.CastQ(target); } } if (SpellManager.W.IsReady()) { var target = TargetManager.GetMinionTarget(SpellManager.W.Range, DamageType.Magical); if (target != null) { SpellManager.CastW(target); } } if (SpellManager.E.IsReady()) { var target = TargetManager.GetMinionTarget(SpellManager.E.Range, DamageType.Magical); if (target != null) { SpellManager.CastE(target); } } } break; } } }