예제 #1
0
 public static void BadaoActivate()
 {
     BadaoGravesConfig.BadaoActivate();
     BadaoGravesCombo.BadaoActivate();
     BadaoGravesBurst.BadaoActivate();
     BadaoGravesAuto.BadaoActivate();
     BadaoGravesJungle.BadaoActivate();
     Spellbook.OnCastSpell           += Spellbook_OnCastSpell;
     EnsoulSharp.Player.OnIssueOrder += OnIssueOrder;
 }
예제 #2
0
 public static void BadaoActivate()
 {
     BadaoGravesConfig.BadaoActivate();
     BadaoGravesCombo.BadaoActivate();
     BadaoGravesBurst.BadaoActivate();
     BadaoGravesAuto.BadaoActivate();
     BadaoGravesJungle.BadaoActivate();
     Spellbook.OnCastSpell    += Spellbook_OnCastSpell;
     Obj_AI_Base.OnIssueOrder += Obj_AI_Base_OnIssueOrder;
 }
예제 #3
0
 public static void BadaoActivate()
 {
     BadaoGravesConfig.BadaoActivate();
     BadaoGravesCombo.BadaoActivate();
     BadaoGravesBurst.BadaoActivate();
     BadaoGravesAuto.BadaoActivate();
     BadaoGravesJungle.BadaoActivate();
     Spellbook.OnCastSpell        += Spellbook_OnCastSpell;
     EloBuddy.Player.OnIssueOrder += Obj_AI_Base_OnIssueOrder;
     //Game.OnUpdate += Game_OnUpdate;
 }
예제 #4
0
 private static void OnIssueOrder(AIBaseClient sender, PlayerIssueOrderEventArgs args)
 {
     if (BadaoMainVariables.Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.None && !BurstKey.GetValue <KeyBind>().Active)
     {
         return;
     }
     if (!sender.IsMe)
     {
         return;
     }
     if (args.Order != GameObjectOrder.AttackUnit)
     {
         return;
     }
     if (args.Target == null)
     {
         return;
     }
     if (!(args.Target is AIBaseClient))
     {
         return;
     }
     if (Player.Distance(args.Target.Position) > Player.BoundingRadius + Player.AttackRange + args.Target.BoundingRadius - 20)
     {
         args.Process = false;
         return;
     }
     if (!BadaoGravesHelper.CanAttack())
     {
         args.Process = false;
         return;
     }
     BadaoGravesCombo.OnIssueOrder(sender, args);
     BadaoGravesBurst.OnIssueOrder(sender, args);
     BadaoGravesJungle.OnIssueOrder(sender, args);
 }