private static void VayneOnSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args) { if (sender.IsMe && Orbwalking.IsAutoAttack(args.SData.Name) && args.Target is AIHeroClient && args.Target.IsValid && VayneMenu.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo && Helper.VEnabled("vayne.q.combo") && Helper.VEnabled("vayne.q.after.aa")) { VayneHelper.TumbleCast(); } if (sender.IsMe && Orbwalking.IsAutoAttack(args.SData.Name) && args.Target is AIHeroClient && args.Target.IsValid && VayneMenu.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo && Helper.VEnabled("vayne.q.combo") && Helper.VEnabled("vayne.auto.q.if.enemy.has.2.stack") && ((AIHeroClient)args.Target).GetBuffCount("vaynesilvereddebuff") == 2) { VayneHelper.TumbleCast(); } if (sender.IsMe && Orbwalking.IsAutoAttack(args.SData.Name) && args.Target is Obj_AI_Minion && args.Target.IsValid && VayneMenu.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear && Helper.VEnabled("vayne.q.combo") && Helper.VEnabled("vayne.tumble.jungle.mobs") && ((Obj_AI_Minion)args.Target).Team == GameObjectTeam.Neutral && (((Obj_AI_Minion)args.Target).CharData.BaseSkinName == "SRU_Razorbeak" || ((Obj_AI_Minion)args.Target).CharData.BaseSkinName == "SRU_Red" || ((Obj_AI_Minion)args.Target).CharData.BaseSkinName == "SRU_Blue" || ((Obj_AI_Minion)args.Target).CharData.BaseSkinName == "SRU_Gromp" || ((Obj_AI_Minion)args.Target).CharData.BaseSkinName == "SRU_Krug" || ((Obj_AI_Minion)args.Target).CharData.BaseSkinName == "SRU_Murkwolf" || ((Obj_AI_Minion)args.Target).CharData.BaseSkinName == "Sru_Crab")) { VayneHelper.TumbleCast(); } }
private static void Harass() { if (ObjectManager.Player.ManaPercent < Helper.VSlider("vayne.harass.mana")) { return; } if (VayneMenu.Config.Item("harass.type").GetValue <StringList>().SelectedIndex == 0 && VayneSpells.Q.IsReady()) { foreach (var qTarget in HeroManager.Enemies.Where(x => x.IsValidTarget(ObjectManager.Player.AttackRange) && x.Buffs.Any(buff => buff.Name == "vaynesilvereddebuff" && buff.Count == 2))) { VayneHelper.TumbleCast(); } } if (VayneMenu.Config.Item("harass.type").GetValue <StringList>().SelectedIndex == 1 && VayneSpells.E.IsReady()) { foreach (var etarget in HeroManager.Enemies.Where(x => x.IsValidTarget(ObjectManager.Player.AttackRange) && x.Buffs.Any(buff => buff.Name == "vaynesilvereddebuff" && buff.Count == 2))) { VayneSpells.E.CastOnUnit(etarget); } } }