Beispiel #1
0
 public async void AutoChainer()
 {
     while (Config.AutoChain.Value)
     {
         if (!Config.FistAndComboKey.Value.Active && !Config.RemntantCombo.Value.Active)
         {
             var target = Selector.Active.GetTargets().FirstOrDefault();
             if (target != null)
             {
                 var mod = Me.FindModifier("modifier_ember_spirit_sleight_of_fist_caster");
                 if (mod != null)
                 {
                     if (Chains.CanBeCasted())
                     {
                         if (Me.Distance2D(target) <= 400)
                         {
                             Chains.UseAbility();
                             Log.Debug("Auto Chains usages");
                             await Task.Delay(100);
                         }
                     }
                 }
             }
         }
         await Task.Delay(1);
     }
 }
Beispiel #2
0
 private async void FistAndChain()
 {
     Log.Debug("starting combo");
     while (Config.FistAndComboKey.Value.Active)
     {
         var target = Selector.Active.GetTargets().FirstOrDefault();
         if (target != null)
         {
             if (Fist.CanBeCasted() && Fist.CanHit(target))
             {
                 Fist.UseAbility(target.Position);
                 Log.Debug("Fist usages");
                 await Task.Delay(25);
             }
             if (Chains.CanBeCasted())
             {
                 if (Me.Distance2D(target) <= 400)
                 {
                     Chains.UseAbility();
                     Log.Debug("Chains usages");
                     await Task.Delay(100);
                 }
             }
         }
         await Task.Delay(1);
     }
 }