public static void Spellbook_OnCastSpell(Spellbook sender, SpellbookCastSpellEventArgs args) { if (sender != null && sender.Owner != null && sender.Owner.IsMe && args.Slot == SpellSlot.E && (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))) { if (!(args.Target is AIHeroClient)) { args.Process = false; return; } if (GetCondemnTarget(Variables._Player.ServerPosition).IsValidTarget()) { if (!Shine.GetTarget(Variables._Player.ServerPosition).IsValidTarget()) { args.Process = false; } } } }
public static Obj_AI_Base GetCondemnTarget(Vector3 fromPosition) { switch (Manager.MenuManager.CondemnMode) { case 0: //VH Revolution return(Shine.GetTarget(fromPosition)); case 1: //VH Reborn return(VHReborn.GetTarget(fromPosition)); case 2: //Marksman / Gosu return(Marksman.GetTarget(fromPosition)); case 3: //Shine# return(VHRevolution.GetTarget(fromPosition)); } return(null); }