示例#1
0
 public static Obj_AI_Base findUnkillable()
 {
     EnemyMinions = MinionManager.GetMinions(player.Position, 1500);
     foreach (var enemyMinion in EnemyMinions)
     {
         var minHealthPred = DamagePrediction.getPred(enemyMinion, DamagePrediction.PredType.PRED_UNKILLABLE);
         if (minHealthPred <= 0)
         {
             return(enemyMinion);
         }
     }
     return(null);
 }
示例#2
0
 public static Obj_AI_Base shouldWait()
 {
     EnemyMinions = MinionManager.GetMinions(player.Position, 1500);
     foreach (var enemyMinion in EnemyMinions)
     {
         if (!DeathWalker.inAutoAttackRange(enemyMinion))
         {
             continue;
         }
         var minHealthPred = DamagePrediction.getPred(enemyMinion, DamagePrediction.PredType.PRED_TWO_HITS);
         var dmgOnMinion   = player.GetAutoAttackDamage(enemyMinion, true);
         if (minHealthPred <= dmgOnMinion)
         {
             return(enemyMinion);
         }
     }
     return(null);
 }
示例#3
0
 public static Obj_AI_Base findKillable()
 {
     EnemyMinions = MinionManager.GetMinions(player.Position, 1500);
     foreach (var enemyMinion in EnemyMinions)
     {
         if (!DeathWalker.inAutoAttackRange(enemyMinion))
         {
             continue;
         }
         var minHealthPred = DamagePrediction.getPred(enemyMinion, DamagePrediction.PredType.PRED_LAST_HIT);
         var dmgOnMinion   = player.GetAutoAttackDamage(enemyMinion, true);
         if (minHealthPred <= dmgOnMinion && minHealthPred > lowerLimit)
         {
             return(enemyMinion);
         }
     }
     return(null);
 }