private static void Spellbook_OnCastSpell(Spellbook sender, SpellbookCastSpellEventArgs args) { return; if (sender != null && sender.Owner != null && sender.Owner.IsMe && args.Slot == SpellSlot.E && (Variables.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo)) { if (!(args.Target is Obj_AI_Hero)) { args.Process = false; return; } if (GetCondemnTarget(ObjectManager.Player.ServerPosition).IsValidTarget()) { if (!Shine.GetTarget(ObjectManager.Player.ServerPosition).IsValidTarget()) { args.Process = false; } } } }
public static Obj_AI_Base GetCondemnTarget(Vector3 fromPosition) { switch (MenuExtensions.GetItemValue <StringList>("dz191.vhr.misc.condemn.condemnmethod").SelectedIndex) { case 0: //VH Revolution return(VHRevolution.GetTarget(fromPosition)); case 1: //VH Reborn return(VHReborn.GetTarget(fromPosition)); case 2: //Marksman / Gosu return(Marksman.GetTarget(fromPosition)); case 3: //Shine# return(Shine.GetTarget(fromPosition)); } return(null); }
public static Obj_AI_Base GetCondemnTarget(Vector3 fromPosition) { switch (MenuGenerator.miscMenu["dz191.vhr.misc.condemn.condemnmethod"].Cast <ComboBox>().CurrentValue) { case 0: //VH Revolution return(VHRevolution.GetTarget(fromPosition)); case 1: //VH Reborn return(VHReborn.GetTarget(fromPosition)); case 2: //Marksman / Gosu return(VayneHunter_Reborn.Skills.Condemn.Methods.Marksman.GetTarget(fromPosition)); case 3: //Shine# return(Shine.GetTarget(fromPosition)); } return(null); }