Beispiel #1
0
 public void Player_OnExecuteOrder(ExecuteOrderEventArgs args)
 {
     if (this.pause || Variable.Hero == null || !Variable.Hero.IsValid || !Variable.Hero.IsAlive)
     {
         return;
     }
     lasthit.resetAutoAttackMode();
     if (args.Order == Order.AttackTarget)
     {
         this.targetFind.UnlockTarget();
         this.targetFind.Find();
     }
     else
     {
         this.targetFind.UnlockTarget();
     }
     // re lock target
     if (Variable.BearChaseModeOn)
     {
         //should disable Auto Iron Talon and Midas until Noenemy is nearby
         if (Variable.AutoTalonActive)
         {
             Variable.MenuManager.AutoTalonMenu.SetValue(new KeyBind(Variable.MenuManager.AutoTalonMenu.GetValue <KeyBind>().Key, KeyBindType.Toggle, false));
         }
         if (Variable.AutoMidasModeOn)
         {
             Variable.MenuManager.AutoMidasMenu.SetValue(new KeyBind(Variable.MenuManager.AutoMidasMenu.GetValue <KeyBind>().Key, KeyBindType.Toggle, false));
         }
         //this.targetFind.UnlockTarget();
         //this.targetFind.Find();
         //
     }
 }